From 2570f6b968fe0af645627024348b86885d00a301 Mon Sep 17 00:00:00 2001 From: Nozomi Anzai Date: Mon, 4 Jun 2012 16:24:16 +0900 Subject: [PATCH] Update not to use CVS but git. --- tools/make_tarball.sh | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/tools/make_tarball.sh b/tools/make_tarball.sh index 85a08f0..98af767 100755 --- a/tools/make_tarball.sh +++ b/tools/make_tarball.sh @@ -5,34 +5,38 @@ # Usage: ./make_tarball [version cvs-tag-name] # -CVSROOT=:ext:${USER}@cvs.pgfoundry.org:/cvsroot/pgpool -export CVSROOT - case $# in 0) - TAGOPT="-r HEAD" + BRANCH=master VERSION=snapshot ;; 2) - TAGOPT="-r $2" + BRANCH=$2 VERSION=$1 ;; *) - echo "Usage: $0 pgpoolAdmin-versino cvs-tag-name" 1>&2 + echo "Usage: $0 versino git-branch-name" 1>&2 exit 1 ;; esac PACKAGE_DIR=pgpoolAdmin-$VERSION +echo "1. git clone" rm -rf $PACKAGE_DIR -cvs export $TAGOPT -d $PACKAGE_DIR pgpoolAdmin +git clone ssh://git@git.postgresql.org/pgpooladmin.git $PACKAGE_DIR +echo "" -# create templates_c directory. -mkdir $PACKAGE_DIR/templates_c +echo "2. git checkout" +cd $PACKAGE_DIR +git checkout $BRANCH +cd ../ +echo "" -# remove tools directory +echo "3. Arrange dirs" +mkdir $PACKAGE_DIR/templates_c find $PACKAGE_DIR -name tools -type d | xargs rm -rf +find $PACKAGE_DIR -name .git -type d | xargs rm -rf -# make tar ball +echo "4. make tar ball" tar czf $PACKAGE_DIR.tar.gz $PACKAGE_DIR -- 2.39.5