summaryrefslogtreecommitdiff
path: root/net/sdist/patches/patch-aa
blob: 94647cd8ca3be5bca606f7134d77c36492e0d82b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD: patch-aa,v 1.1 2006/01/05 19:38:40 christos Exp $

--- sdist.sh.orig	2001-03-29 17:00:37.000000000 -0500
+++ sdist.sh	2006-01-05 14:37:14.000000000 -0500
@@ -26,6 +26,7 @@
 OPTS=
 # default timeout for rdist -- 2 minutes instead of 15
 timeout=120
+logopts="stdout=nerror,ferror,warning"
 
 
 while [ "$1" != "" ]; do
@@ -48,6 +49,11 @@
 		maxkids="$2"
 		shift
 		;;
+	-l)
+		OPTS="$OPTS $1 $2"
+		logopts="$2"
+		shift
+		;;
 	-f) 	OPTS="$OPTS $1 $2"
 		if [ "$any_servers" = "false" ]; then
 			any_servers="true"
@@ -152,7 +158,7 @@
 done
 
 # Use an rdist file for multiple directories and parallel updates.
-@RDIST@ -t $timeout -M $maxkids $rdistopts -f - << __EOF || exit $?
+@RDIST@ -t $timeout -M $maxkids -l $logopts $rdistopts -f - << __EOF || exit $?
 	($dirs)	-> ($servers $allmasters)
 		$extras
 		install $destdir ;