]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix diff generation
authorhno <>
Fri, 30 Dec 2005 09:02:25 +0000 (09:02 +0000)
committerhno <>
Fri, 30 Dec 2005 09:02:25 +0000 (09:02 +0000)
mksnapshot.sh

index 713859898c15344eed649f7b5840e8c25f7fbda9..c80c8aed5420967cb3af076e8d96723517bd3191 100755 (executable)
@@ -37,7 +37,7 @@ EOS
 ./configure --silent
 make -s dist-all
 
-basetarball=/server/httpd/htdocs/squid-cache.org/Versions/v3/3.0/`echo $VERSION | cut -d. -f-2`/${PACKAGE}-${VERSION}.tar.bz2
+basetarball=/server/httpd/htdocs/squid-cache.org/Versions/v`echo $VERSION | cut -d. -f1`/`echo $VERSION | cut -d. -f-2`/${PACKAGE}-${VERSION}.tar.bz2
 if (echo $VERSION | grep PRE) || (echo $VERSION | grep STABLE); then
        echo "Differences from ${PACKAGE}-${VERSION} to ${PACKAGE}-${VERSION}-${date}" >${PACKAGE}-${VERSION}-${date}.diff
        if [ -f $basetarball ]; then
@@ -45,7 +45,7 @@ if (echo $VERSION | grep PRE) || (echo $VERSION | grep STABLE); then
                tar jxf $basetarball
                diff -ruN ${PACKAGE}-${VERSION} ${PACKAGE}-${VERSION}-${date} >>${PACKAGE}-${VERSION}-${date}.diff || true
        else
-               cvs -q rdiff -u -r SQUID_`echo $VERSION | tr .- __` -r $tag $module >>${PACKAGE}-${VERSION}-${date}.diff
+               cvs -q rdiff -u -r SQUID_`echo $VERSION | tr .- __` -r $tag $module >>${PACKAGE}-${VERSION}-${date}.diff || true
        fi
 fi