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.
This commit is contained in:
Satoshi Asami 1999-06-22 09:48:00 +00:00
parent a0a221bc9c
commit ff4726b2bb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=19629

View file

@ -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