Skip to content

Commit

Permalink
scripts/prepare-release.sh: update svn and bash usage
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.csie.net/chewing/libchewing/trunk@1096 ac1be623-90ea-0310-9410-ba68b2efa777
  • Loading branch information
jserv committed Feb 27, 2011
1 parent a8cf3dd commit e6e610b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/prepare-release.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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!"
Expand All @@ -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
Expand Down

0 comments on commit e6e610b

Please sign in to comment.