From: Henrik Nordstrom Date: Fri, 7 Mar 2008 22:10:03 +0000 (-0700) Subject: Author: Robert Collins X-Git-Tag: BASIC_TPROXY4~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39e4ea99e030fb511d15fa8a9666371313c90427;p=thirdparty%2Fsquid.git Author: Robert Collins This is most of a changeover of scripts for squid 3 trunk to use bzr; the missing bit appears to need a bzr 1.1 (to do 'rdiff' basically) or thereabouts, I'll look into that in a bit. I'm not sure that the unconverted cvs calls will actually trigger with our current setup or not. --- diff --git a/configure.in b/configure.in index 25af2c5085..d3e602b1d1 100644 --- a/configure.in +++ b/configure.in @@ -5,7 +5,7 @@ dnl $Id: configure.in,v 1.497 2008/02/17 09:24:49 serassio Exp $ dnl dnl dnl -AC_INIT(Squid Web Proxy, 3.HEAD-CVS, http://www.squid-cache.org/bugs/, squid) +AC_INIT(Squid Web Proxy, 3.HEAD-BZR, http://www.squid-cache.org/bugs/, squid) AC_PREREQ(2.52) AM_CONFIG_HEADER(include/autoconf.h) AC_CONFIG_AUX_DIR(cfgaux) 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 <