summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:36:36 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:36:36 +0000
commitb8a05aa69855c4cdecd3634e9270600ee208d842 (patch)
treecb0bf035281bdd5a76368df2f1ea7ada9e30e8c8
parent880b8ee1b3cd1445af244b6bd906a52bf7b5659c (diff)
downloadpdf-over-b8a05aa69855c4cdecd3634e9270600ee208d842.tar.gz
pdf-over-b8a05aa69855c4cdecd3634e9270600ee208d842.tar.bz2
pdf-over-b8a05aa69855c4cdecd3634e9270600ee208d842.zip
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
-rwxr-xr-xpublish.sh7
1 files changed, 6 insertions, 1 deletions
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 "<version>" "$BASEDIR/pom.xml" | sed -e "s/[ \t]*<version>\(.*\)<\/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