diff build.sh @ 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 0b2d6db2be7e
children
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