diff options
author | Nozomi Anzai | 2012-06-04 07:24:16 +0000 |
---|---|---|
committer | Nozomi Anzai | 2012-06-04 07:24:16 +0000 |
commit | 2570f6b968fe0af645627024348b86885d00a301 (patch) | |
tree | 337ba52f02f0c4dcd55240aa200936391bb17193 | |
parent | 6a30be1482a51077b06124fac7f6ffedd5f1bb06 (diff) |
Update not to use CVS but git.
-rwxr-xr-x | tools/make_tarball.sh | 26 |
1 files 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://[email protected]/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 |