From b8a05aa69855c4cdecd3634e9270600ee208d842 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:36:36 +0000 Subject: make publish script version and directory independet git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@411 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- publish.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/publish.sh b/publish.sh index 56dbf533..53516509 100755 --- a/publish.sh +++ b/publish.sh @@ -3,14 +3,15 @@ #### CONFIGURE: ###### PUBLISH_DIR="/srv/apache2/www/pdf-over" LOG_DIR="log" -VERSION="4.0.0-SNAPSHOT" CODEBASE_URL="http:\/\/abyss.iaik.tugraz.at\/pdf-over\/" CONTEXT_URL="http:\/\/abyss.iaik.tugraz.at\/pdf-over\/" HOMEPAGE_URL="http:\/\/www.buergerkarte.at" #### DON'T CONFIGURE #### +BASEDIR="`dirname $0`" +VERSION=`grep -m1 "" "$BASEDIR/pom.xml" | sed -e "s/[ \t]*\(.*\)<\/version>/\1/"` TARGET_FILE="pdf-over-gui-$VERSION-standard.jar" TBOLDGRAY="\033[1;30m" @@ -42,6 +43,8 @@ function end_phase { printf "%b%${PAD}s%b" "$STATUSCOLOR" "[$STATUS]" "$TNORMAL" } +pushd $BASEDIR + echo -e "Publishing to: $TYELLOW$PUBLISH_DIR$TNORMAL" mkdir -p $PUBLISH_DIR mkdir -p $LOG_DIR @@ -115,3 +118,5 @@ if [ $RETVAL -ne 0 ]; then else end_phase "OK" fi + +popd -- cgit v1.2.3