aboutsummaryrefslogtreecommitdiffstats
path: root/net/cvsup-mirror
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-04-24 22:01:58 +0800
committerknu <knu@FreeBSD.org>2000-04-24 22:01:58 +0800
commit664955206d005563bbbf0b840c34aed9ec354844 (patch)
treecdd27b9213e7d9ea08f7ffd0653abda3183f0917 /net/cvsup-mirror
parent2d34c235f72fe3015ca8fa7171d17743520b407f (diff)
downloadfreebsd-ports-graphics-664955206d005563bbbf0b840c34aed9ec354844.tar.gz
freebsd-ports-graphics-664955206d005563bbbf0b840c34aed9ec354844.tar.zst
freebsd-ports-graphics-664955206d005563bbbf0b840c34aed9ec354844.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>
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 1f0c4dbe688..5a49d0faf4b 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