X-Git-Url: https://git.distorted.org.uk/~mdw/mirror-admin/blobdiff_plain/15e71a977ed98870a1f5a3f2b5f0400dfbce131d..d206ccfed7f74623280695492b1a9240579203dd:/bin/fetch-ftpsync diff --git a/bin/fetch-ftpsync b/bin/fetch-ftpsync new file mode 100755 index 0000000..c1f5e8b --- /dev/null +++ b/bin/fetch-ftpsync @@ -0,0 +1,19 @@ +#! /bin/sh -e + +here=$(pwd) +tmp=$(mktemp -d) +trap 'cd; rm -rf "$tmp"' EXIT INT TERM + +cd "$tmp" +git clone "$here" mirror +cd mirror +git checkout ftpsync + +curl https://ftp-master.debian.org/ftpsync.tar.gz | + tar --strip-components=1 -xvmzf - distrib/bin distrib/etc/common + +git add bin/ etc/common +git commit -m"New ftpsync upstream." +git push + +cd "$here"