Skip to content

Commit 4021297

Browse files
committed
Add a -q for quiet output of cvs
1 parent 6f38948 commit 4021297

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

selfupdate-server/finkrsyncup

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
FIROOT="/Volumes/src2/fink/selfupdate"
44
LOCKFILE="/var/run/finkrsyncup.lock"
55
SSHUSER="finkcvs"
6+
CVSARGS=""
67

78
usage() {
89
cat > "/dev/stderr" << EOF
@@ -11,7 +12,7 @@ EOF
1112
exit
1213
}
1314

14-
while getopts ":l:o:u:h" OPTION; do
15+
while getopts ":l:o:u:hq" OPTION; do
1516
case "${OPTION}" in
1617
l)
1718
LOCKFILE=${OPTARG}
@@ -22,6 +23,9 @@ while getopts ":l:o:u:h" OPTION; do
2223
u)
2324
SSHUSER=${OPTARG}
2425
;;
26+
q)
27+
CVSARGS=" -q "
28+
;;
2529
h | ?)
2630
usage
2731
;;
@@ -34,7 +38,7 @@ lockfile -r 0 "${LOCKFILE}" || exit 0
3438

3539
cd "${FIROOT}"
3640

37-
if /usr/bin/cvs -d :ext:${SSHUSER}@fink.cvs.sourceforge.net:/cvsroot/fink -z3 co -d finkinfo.tmp dists; then
41+
if /usr/bin/cvs -d :ext:${SSHUSER}@fink.cvs.sourceforge.net:/cvsroot/fink ${CVSARGS} -z3 co -d finkinfo.tmp dists; then
3842
if rsync -a --delete --exclude=.cvsignore --exclude=CVS "${FIROOT}/finkinfo.tmp/" "${FIROOT}/finkinfo/"; then
3943
echo "$(date -u +%s)" > "${FIROOT}/finkinfo/TIMESTAMP";
4044
fi;

0 commit comments

Comments
 (0)