changeset 1395:f428b7d8f19b

SENCHAPATH now can be preset by using export SENCHAPATH=... before ./build.sh
author Marco Lechner, Bundesamt fuer Strahlenschutz, SW 2.1 <mlechner@bfs.de>
date Mon, 13 Mar 2017 12:39:14 +0100
parents 76ff6d084167
children b92aef19cff9
files build.sh
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/build.sh	Thu Mar 09 15:37:19 2017 +0100
+++ b/build.sh	Mon Mar 13 12:39:14 2017 +0100
@@ -1,11 +1,12 @@
 
-SENCHAPATH=~/bin/Sencha/Cmd/4.0.5.87/sencha
+#Fallback: SENCHAPATH=~/bin/Sencha/Cmd/4.0.5.87/sencha
+if [ -z $SENCHAPATH ]; then SENCHAPATH="~/bin/Sencha/Cmd/4.0.5.87/"; fi
 VNUMBER=$(grep Lada.clientVersion app.js | cut -d '=' -f 2 | cut -d "'" -f 2)
 VERSION=lada-client-$VNUMBER
 
 # Minify
 echo "Minifying...."
-$SENCHAPATH --sdk-path extjs compile \
+$SENCHAPATH/sencha --sdk-path extjs compile \
     --classpath=app,resources/lib/ext/upload,resources/lib/ext/i18n,resources/lib/ext/grid,resources/lib/ext/util page \
     -yui -i index.html -o $VERSION/index.html
 

http://lada.wald.intevation.org