Permalink
Browse files

scripts/prepare-release.sh: update svn and bash usage

git-svn-id: https://svn.csie.net/chewing/libchewing/trunk@1096 ac1be623-90ea-0310-9410-ba68b2efa777
  • Loading branch information...
1 parent a8cf3dd commit e6e610b7d55bbd06beeda1460fa8ff2473a13ce3 jserv committed Feb 27, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 scripts/prepare-release.sh
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
CHEWING=libchewing
VERSION=`cat configure.ac | awk '/AC_INIT/ {print $2}' | tr -d ' ' | sed -e 's/,//'`
NEW=$CHEWING-$VERSION
-TARBALL=$NEW.tar.gz
+TARBALL=$NEW.tar.bz2
SVNENTRY=.svn/entries
if [ ! -f $SVNENTRY ]; then
@@ -13,7 +13,7 @@ fi
rm -rf trunk $NEW $TARBALL
-svn co `grep "url=" $SVNENTRY | cut -d\" -f2`
+svn co `svn info | grep "URL: " | cut -c6-`
if [ ! -d trunk ]; then
echo "Error!"
@@ -36,7 +36,7 @@ rm -rf debian
rm -rf autom4te.cache
popd
-tar zcvf $TARBALL $NEW
+tar jcvf $TARBALL $NEW
rm -rf $NEW
# Show some info

0 comments on commit e6e610b

Please sign in to comment.