aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1999-06-22 17:48:00 +0800
committerasami <asami@FreeBSD.org>1999-06-22 17:48:00 +0800
commitba1d58f8bf1b22fb68cefaad267af62cae21a833 (patch)
treef31f39255822cff0dde774a5d962d3cc3192ffb1 /Tools/portbuild
parent24bc0b1d145b8972f5b144b2bbb34c01a27083e3 (diff)
downloadfreebsd-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-xTools/portbuild/scripts/cpdistfiles22
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