diff options
author | asami <asami@FreeBSD.org> | 1999-06-22 17:48:00 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1999-06-22 17:48:00 +0800 |
commit | ba1d58f8bf1b22fb68cefaad267af62cae21a833 (patch) | |
tree | f31f39255822cff0dde774a5d962d3cc3192ffb1 /Tools/portbuild | |
parent | 24bc0b1d145b8972f5b144b2bbb34c01a27083e3 (diff) | |
download | freebsd-ports-gnome-ba1d58f8bf1b22fb68cefaad267af62cae21a833.tar.gz freebsd-ports-gnome-ba1d58f8bf1b22fb68cefaad267af62cae21a833.tar.zst freebsd-ports-gnome-ba1d58f8bf1b22fb68cefaad267af62cae21a833.zip |
A little script to copy changed/new distfiles over to wcarchive. This
probably won't be of much use to too many people, but just FYI.
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-x | Tools/portbuild/scripts/cpdistfiles | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/cpdistfiles b/Tools/portbuild/scripts/cpdistfiles new file mode 100755 index 000000000000..84e69ef64afc --- /dev/null +++ b/Tools/portbuild/scripts/cpdistfiles @@ -0,0 +1,22 @@ +#!/bin/sh + +# configurable variables +rhost=ftp.freebsd.org +ruser=asami +rdir=w/ports/distfiles +pb=/a/asami/portbuild + +unset DISPLAY + +# copy one distfile to remote host +cpdistfile () { + tar -C distfiles -cf - $1 | ssh $rhost -l $ruser tar -C $rdir -xvf - +} + +cd $pb/distfiles +find . -type f | sort | xargs md5 > ../md5-2 +cd $pb +for i in $(diff md5 md5-2 | grep '^>' | sed -e 's^.*(\./^^' -e 's/).*//'); do + cpdistfile $i +done +mv md5-2 md5 |