From 3e80b5f036407d2bd80d66368ec16fbad3b3ec3b Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 4 Feb 2007 13:33:56 +0000 Subject: [PATCH] *** empty log message *** --- ase/rel/rel.sh | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/ase/rel/rel.sh b/ase/rel/rel.sh index bd5affbf..5a2e3b0c 100755 --- a/ase/rel/rel.sh +++ b/ase/rel/rel.sh @@ -66,19 +66,24 @@ finalize () done } -if [ ! -f ../CVS/Tag ] -then - echo "Error: ../CVS/Tag not found" - exit 1; -fi + +############################ +# BEGINNING OF THE PROGRAM # +############################ AWK="$HOME/awk" -VERSION=`cat ../CVS/Tag | cut -c6- | tr '[A-Z]' '[a-z]' | sed 's/_/./g` - -cwd=`pwd` +CURDIR=`pwd` cd ".." BASE=`pwd` + +if [ ! -f "$BASE/CVS/Tag" ] +then + echo "Error: $BASE/CVS/Tag not found" + exit 1; +fi +VERSION=`cat "$BASE/CVS/Tag" | cut -c6- | tr '[A-Z]' '[a-z]' | sed 's/_/./g` + DEPLOY_ROOT="$BASE/web.out" SOURCE_ROOT="$DEPLOY_ROOT/ase-$VERSION" @@ -94,4 +99,5 @@ tar -cvf "ase-$VERSION.tar" "ase-$VERSION" gzip "ase-$VERSION.tar" rm -rf "ase-$VERSION" +cd "$CURDIR" exit 0