File 10803.patch of Package squid-beta

---------------------
PatchSet 10803 
Date: 2007/05/18 01:26:43
Author: hno
Branch: HEAD
Tag: (none) 
Log:
Add cfgman to Squid-3 snapshot generation

Members: 
	mksnapshot.sh:1.16->1.17 

Index: squid3/mksnapshot.sh
===================================================================
RCS file: /cvsroot/squid/squid3/mksnapshot.sh,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- squid3/mksnapshot.sh	30 Dec 2005 02:26:32 -0000	1.16
+++ squid3/mksnapshot.sh	18 May 2007 01:26:43 -0000	1.17
@@ -47,6 +47,10 @@
 	else
 		cvs -q rdiff -u -r SQUID_`echo $VERSION | tr .- __` -r $tag $module >>${PACKAGE}-${VERSION}-${date}.diff || true
 	fi
+elif [ -f STABLE_BRANCH ]; then
+	stable=`cat STABLE_BRANCH`
+	echo "Differences from ${stable} to ${PACKAGE}-${VERSION}-${date}" >${PACKAGE}-${VERSION}-${date}.diff
+	cvs -q rdiff -u -r $stable -r $tag $module >>${PACKAGE}-${VERSION}-${date}.diff
 fi
 
 cd $startdir
@@ -70,3 +74,14 @@
 fi
 cp -p $tmpdir/ChangeLog ${PACKAGE}-${VERSION}-${date}-ChangeLog.txt
 echo ${PACKAGE}-${VERSION}-${date}-ChangeLog.txt >>${tag}.out
+
+if [ -x $tmpdir/scripts/www/build-cfg-help.pl ]; then
+	make -C $tmpdir/src cf.data
+	mkdir -p $tmpdir/doc/cfgman
+	$tmpdir/scripts/www/build-cfg-help.pl -o $tmpdir/doc/cfgman $tmpdir/src/cf.data
+	sh -c "cd $tmpdir/doc/cfgman && tar -zcf $PWD/${PACKAGE}-${VERSION}-${date}-cfgman.tar.gz *"
+	echo ${PACKAGE}-${VERSION}-${date}-cfgman.tar.gz >>${tag}.out
+	$tmpdir/scripts/www/build-cfg-help.pl -o ${PACKAGE}-${VERSION}-${date}-cfgman.html -f singlehtml $tmpdir/src/cf.data
+	gzip -f -9 ${PACKAGE}-${VERSION}-${date}-cfgman.html
+	echo ${PACKAGE}-${VERSION}-${date}-cfgman.html.gz >>${tag}.out
+fi