diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1999-06-22 09:48:00 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1999-06-22 09:48:00 +0000 |
commit | ff4726b2bb30adcfa553fa0beb2d7ca54a4f7f4d (patch) | |
tree | 0d6a97bbc9f1118a0a965c789f781004fa0b84ae /Tools | |
parent | a0a221bc9cca426bbe5b0959be8e63b4f51c49f4 (diff) | |
download | ports-ff4726b2bb30adcfa553fa0beb2d7ca54a4f7f4d.tar.gz ports-ff4726b2bb30adcfa553fa0beb2d7ca54a4f7f4d.zip |
Notes
Diffstat (limited to 'Tools')
-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 |