From: Henrik Nordstrom Date: Thu, 13 Mar 2008 19:53:13 +0000 (-0600) Subject: Bootstrapped X-Git-Tag: SQUID_3_0_STABLE3~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc2940d6a41b7710a2c48605c21aebd716a98474;p=thirdparty%2Fsquid.git Bootstrapped --- diff --git a/mkrelease.sh b/mkrelease.sh index 1884bf7fe6..42cd33dae4 100755 --- a/mkrelease.sh +++ b/mkrelease.sh @@ -3,8 +3,12 @@ if [ $# -ne 1 -a $# -ne 2 ]; then echo "Usage: $0 revision [destination]" exit 1 fi -package=squid +# VCS details module=squid3 +BZRROOT=${BZRROOT:-/bzr} + +# infer tags from command line details +package=squid rev=`echo $1 | sed -e "s/^${package}-//"` name=${package}-${rev} tag=`echo ${name} | tr a-z.- A-Z__` @@ -24,32 +28,29 @@ fi tmpdir=${TMPDIR:-${PWD}}/${name}-mkrelease -CVSROOT=${CVSROOT:-/server/cvs-server/squid} -export CVSROOT - rm -rf $name.tar.gz $tmpdir trap "rm -rf $tmpdir" 0 -cvs -Q export -d $tmpdir -r $tag $module +bzr export $tmpdir $BZRROOT/$module/tags/$tag || exit 1 if [ ! -f $tmpdir/configure ]; then echo "ERROR! Tag $tag not found in $module" fi cd $tmpdir -eval `grep "^ *VERSION=" configure | sed -e 's/-CVS//'` +eval `grep "^ *VERSION=" configure | sed -e 's/-BZR//'` eval `grep "^ *PACKAGE=" configure` if [ ${name} != ${PACKAGE}-${VERSION} ]; then - echo "ERROR! The version numbers does not match!" + echo "ERROR! The tag and configure version numbers do not match!" echo "${name} != ${PACKAGE}-${VERSION}" exit 1 fi RELEASE=`echo $VERSION | cut -d. -f1,2 | cut -d- -f1` ed -s configure.in </dev/null - -make_snapshot() -{ { - set -e - cd ../release - mksnap=$1 - tag=$2 - dir=$3 - ver=$4 - save=${5:-3} - dst=$versions/$dir/$ver - $mksnap $tag 2>&1 | grep -v "set owner/group" - for file in `cat $tag.out` ; do - case $file in - *-cfgman.tar.gz) - type=-cfgman.tar.gz - ;; - *) - type=`echo $file | sed -e 's/.*\.tar\.gz/.tar.gz/' -e 's/.*\.tar\.bz2/.tar.bz2/' -e 's/.*\.patch/.patch/' -e 's/.*\.diff/.diff/' -e 's/.*-RELEASENOTES.html/-RELEASENOTES.html/' -e 's/^.*ChangeLog.txt$/-ChangeLog.txt/' -e 's/.*-cfgman/-cfgman/'` - esac - - # move tarball - rm -f $dst/$file.md5 - rm -f $dst/$file - md5 $file >$dst/$file.md5 - cp -p $file $dst/$file - rm -f $file - - # update snapshot symlink - rm -f $dst/squid-$ver.snapshot$type - ln -s $file $dst/squid-$ver.snapshot$type - rm -f $dst/squid-$ver.snapshot$type.md5 - ln -s $file $dst/squid-$ver.snapshot$type.md5 - - # cleanup old snapshots - ls $dst/*-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$type | sed -e 's/.*-\([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'$type'\)/\1/' | sort -r | tail +$save | while read f; do - rm -f $dst/*-$f $dst/*-$f.md5 - done - - # Special cases - case $file in - *-cfgman.tar.gz) - mkdir -p $dst/cfgman - tar -C $dst/cfgman -zxf $dst/$file - ;; - *-cfgman.html) - rm -f $dst/cfgman.html - ln -s $dst/$file $dst/cfgman.html - ;; - *-cfgman.html.gz) - rm -f $dst/cfgman.html.gz - ln -s $dst/$file $dst/cfgman.html.gz - ;; - esac - done - - # update web page - if [ -x $dst/make.sh ]; then - $dst/make.sh - fi - -} } - -set +e - -../commit/bootstrap squid -#make_snapshot ../commit/squid/mksnapshot.sh HEAD v3 HEAD 6 - -rm -f /server/httpd/htdocs/squid-cache.org/CONTRIBUTORS.new -cp ../commit/squid/CONTRIBUTORS /server/httpd/htdocs/squid-cache.org/CONTRIBUTORS.new -chmod 444 /server/httpd/htdocs/squid-cache.org/CONTRIBUTORS.new -mv -f /server/httpd/htdocs/squid-cache.org/CONTRIBUTORS.new /server/httpd/htdocs/squid-cache.org/CONTRIBUTORS.txt - -rm -f /server/httpd/htdocs/squid-cache.org/SPONSORS.new -cp ../commit/squid/SPONSORS /server/httpd/htdocs/squid-cache.org/SPONSORS.new -chmod 444 /server/httpd/htdocs/squid-cache.org/SPONSORS.new -mv -f /server/httpd/htdocs/squid-cache.org/SPONSORS.new /server/httpd/htdocs/squid-cache.org/SPONSORS.txt - -#../commit/bootstrap squid-3.0 -#make_snapshot ../commit/squid/mksnapshot.sh SQUID_3_0 v3 3.0 3 -make_snapshot ../commit/squid/mksnapshot.sh HEAD v3 3.0 3 - -../commit/bootstrap squid-2 -make_snapshot ../commit/squid-2/mksnapshot.sh HEAD v2 HEAD 3 - -../commit/bootstrap squid-2.6 -make_snapshot ../commit/squid-2.6/mksnapshot.sh SQUID_2_6 v2 2.6 3 - -#../commit/bootstrap squid-2.5 -#make_snapshot ../commit/squid-2.5/mksnapshot.sh SQUID_2_5 v2 2.5 3 - -#../commit/squid3-SQUID2.sync diff --git a/mksnapshot.sh b/mksnapshot.sh deleted file mode 100755 index 29844aee21..0000000000 --- a/mksnapshot.sh +++ /dev/null @@ -1,87 +0,0 @@ -#!/bin/sh -e -if [ $# -gt 1 ]; then - echo "Usage: $0 [branch]" - exit 1 -fi -module=squid3 -tag=${1:-HEAD} -startdir=$PWD -date=`env TZ=GMT date +%Y%m%d` - -tmpdir=${TMPDIR:-${PWD}}/${module}-${tag}-mksnapshot - -CVSROOT=${CVSROOT:-/server/cvs-server/squid} -export CVSROOT - -rm -rf $tmpdir -trap "rm -rf $tmpdir" 0 - -rm -f ${tag}.out -cvs -Q export -d $tmpdir -r $tag $module -if [ ! -f $tmpdir/configure ]; then - echo "ERROR! Tag $tag not found in $module" -fi - -cd $tmpdir -eval `grep "^ *VERSION=" configure | sed -e 's/-CVS//'` -eval `grep "^ *PACKAGE=" configure` -ed -s configure.in <${PACKAGE}-${VERSION}-${date}.diff - if [ -f $basetarball ]; then - tar jxf ${PACKAGE}-${VERSION}-${date}.tar.bz2 - 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 || 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 -cp -p $tmpdir/${PACKAGE}-${VERSION}-${date}.tar.gz . -echo ${PACKAGE}-${VERSION}-${date}.tar.gz >>${tag}.out -cp -p $tmpdir/${PACKAGE}-${VERSION}-${date}.tar.bz2 . -echo ${PACKAGE}-${VERSION}-${date}.tar.bz2 >>${tag}.out -if [ -f $tmpdir/${PACKAGE}-${VERSION}-${date}.diff ]; then - cp -p $tmpdir/${PACKAGE}-${VERSION}-${date}.diff . - echo ${PACKAGE}-${VERSION}-${date}.diff >>${tag}.out -fi - -relnotes=$tmpdir/doc/release-notes/release-`echo $VERSION | cut -d. -f1,2 | cut -d- -f1`.html -if [ -f $relnotes ]; then - cp -p $relnotes ${PACKAGE}-${VERSION}-${date}-RELEASENOTES.html - echo ${PACKAGE}-${VERSION}-${date}-RELEASENOTES.html >>${tag}.out - ed -s ${PACKAGE}-${VERSION}-${date}-RELEASENOTES.html <>${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 --version ${VERSION} -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 --version ${VERSION} -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