]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Generate snapshot diffs for STABLE/PRE releases relative to the previous
authorhno <>
Tue, 8 Jan 2002 20:35:25 +0000 (20:35 +0000)
committerhno <>
Tue, 8 Jan 2002 20:35:25 +0000 (20:35 +0000)
release (i.e. current STABLE/PRE release)

mksnapshot.sh

index 2948f96a4d98a33fdbd0c35ad9503a797712aa35..e504e8b801029f964b319af4535d9e650c480872 100755 (executable)
@@ -16,6 +16,7 @@ export CVSROOT
 rm -rf $tmpdir
 trap "rm -rf $tmpdir" 0
 
+rm -f ${tag}.out
 cvs -Q export -d $tmpdir -r $tag $package
 if [ ! -f $tmpdir/configure ]; then
        echo "ERROR! Tag $tag not found in $package"
@@ -35,11 +36,16 @@ w
 EOS
 
 ./configure --silent
-make dist-all
+make -s dist-all
 
 cd $startdir
 cp -p $tmpdir/${PACKAGE}-${VERSION}-${date}.tar.gz .
 cp -p $tmpdir/${PACKAGE}-${VERSION}-${date}.tar.bz2 .
 
-echo ${PACKAGE}-${VERSION}-${date}.tar.gz >${tag}.out
+echo ${PACKAGE}-${VERSION}-${date}.tar.gz >>${tag}.out
 echo ${PACKAGE}-${VERSION}-${date}.tar.bz2 >>${tag}.out
+
+if (echo $VERSION | grep PRE) || (echo $VERSION | grep STABLE); then
+  cvs -q rdiff -u -r SQUID_`echo $VERSION | tr .- __` -r $tag $package >${PACKAGE}-${VERSION}-${date}.diff
+  echo ${PACKAGE}-${VERSION}-${date}.diff >>${tag}.out
+fi