summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>2000-08-04 07:20:52 +0000
committerSatoshi Asami <asami@FreeBSD.org>2000-08-04 07:20:52 +0000
commit92b5be3047b82db77b21b45aa198c9e00d62d59f (patch)
tree846881f657c9d496d802bb2929fd87070f988678 /Tools
parentUpdate to 0.1.2. (diff)
Make this run on ${portbuild}/bak/distfiles rather than
${portbuild}/distfiles so it can be interleaved with the next run of build.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/cpdistfiles20
1 files changed, 15 insertions, 5 deletions
diff --git a/Tools/portbuild/scripts/cpdistfiles b/Tools/portbuild/scripts/cpdistfiles
index 84e69ef64afc..b5d7a785bf79 100755
--- a/Tools/portbuild/scripts/cpdistfiles
+++ b/Tools/portbuild/scripts/cpdistfiles
@@ -13,10 +13,20 @@ 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
+echo "================================================"
+echo "md5 generation started at $(date)"
+
+cd $pb/bak/distfiles
+find . -type f | sort | xargs md5 > ../../md5-2
+
+echo "================================================"
+echo "copying started at $(date)"
+
+cd $pb/bak
+for i in $(diff ../md5 ../md5-2 | grep '^>' | sed -e 's^.*(\./^^' -e 's/).*//'); do
cpdistfile $i
done
-mv md5-2 md5
+mv ../md5-2 ../md5
+
+echo "================================================"
+echo "all done at $(date)"