aboutsummaryrefslogtreecommitdiff
path: root/net/cvsup-mirror
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-04-24 14:01:58 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-04-24 14:01:58 +0000
commit8e6405e403035bb6bad47a6f8d83e3ba026ca49f (patch)
treeb335f89730173c7b0cafb410ff75edce5135ef3d /net/cvsup-mirror
parent089e92d1f50839d697c385b9d0d12a1288f4bfa1 (diff)
downloadports-8e6405e403035bb6bad47a6f8d83e3ba026ca49f.tar.gz
ports-8e6405e403035bb6bad47a6f8d83e3ba026ca49f.zip
Make update.sh accept command line options that are passed to CVSup.
Now users can schedule CVSup e.g. as follows: 45 0-6,8-23 * * * root nice -15 /usr/local/etc/cvsup/update.sh -s 45 7 * * * root nice -15 /usr/local/etc/cvsup/update.sh Approved by: John Polstra <jdp@polstra.com>
Notes
Notes: svn path=/head/; revision=27964
Diffstat (limited to 'net/cvsup-mirror')
-rw-r--r--net/cvsup-mirror/files/update.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/cvsup-mirror/files/update.sh b/net/cvsup-mirror/files/update.sh
index 1f0c4dbe6880..5a49d0faf4b1 100644
--- a/net/cvsup-mirror/files/update.sh
+++ b/net/cvsup-mirror/files/update.sh
@@ -5,6 +5,7 @@ if ! export PREFIX=$(expr $0 : "\(/.*\)/etc/cvsup/update\.sh\$"); then
exit 1
fi
+export CVSUP_ARGS="$*"
export PATH=/bin:/usr/bin:${PREFIX}/bin
lock=/var/spool/lock/cvsup.lock
@@ -42,7 +43,7 @@ colldir=sup.client
startup=${PREFIX}/etc/rc.d
eval chome=~${cuser}
cmd="env HOME=${chome} cvsup"
-options="-1gL 1 -b ${base} -c ${colldir}"
+options="-1gL 1 -b ${base} -c ${colldir} ${CVSUP_ARGS}"
umask 2
ok=yes