dustin@941: mlechner@1395: #Fallback: SENCHAPATH=~/bin/Sencha/Cmd/4.0.5.87/sencha mlechner@1395: if [ -z $SENCHAPATH ]; then SENCHAPATH="~/bin/Sencha/Cmd/4.0.5.87/"; fi dustin@941: VNUMBER=$(grep Lada.clientVersion app.js | cut -d '=' -f 2 | cut -d "'" -f 2) dustin@941: VERSION=lada-client-$VNUMBER dustin@941: dustin@941: # Minify dustin@941: echo "Minifying...." mlechner@1395: $SENCHAPATH/sencha --sdk-path extjs compile \ raimund@1378: --classpath=app,resources/lib/ext/upload,resources/lib/ext/i18n,resources/lib/ext/grid,resources/lib/ext/util page \ dustin@941: -yui -i index.html -o $VERSION/index.html dustin@941: dustin@941: # Copy additional files dustin@941: # Extjs Styles dustin@941: echo "Copying additional files...." dustin@941: dustin@941: mkdir --parents $VERSION/extjs/resources dustin@941: cp -r extjs/resources/css $VERSION/extjs/resources dustin@941: cp -r extjs/resources/ext-theme-gray $VERSION/extjs/resources dustin@941: dustin@941: # Additional resources dustin@941: mkdir --parents $VERSION/resources/css dustin@941: mkdir --parents $VERSION/resources/i18n dustin@941: mkdir --parents $VERSION/resources/img dustin@941: mkdir --parents $VERSION/resources/lib dustin@941: dustin@941: cp -r resources/css $VERSION/resources/ dustin@941: cp -r resources/img $VERSION/resources/ dustin@941: cp -r resources/i18n $VERSION/resources/ dustin@941: cp -r resources/lib/Blob $VERSION/resources/lib/ dustin@941: cp -r resources/lib/Blob.js-master $VERSION/resources/lib/ dustin@941: cp -r resources/lib/FileSaver $VERSION/resources/lib/ dustin@941: cp -r resources/lib/FileSaver.js-master $VERSION/resources/lib/ dustin@941: cp -r resources/lib/OpenLayers $VERSION/resources/lib/ mstanko@1277: cp -r resources/lib/ol2-release-2.13.1 $VERSION/resources/lib/ dustin@941: dustin@941: echo "Compressing...." dustin@941: tar -czf $VERSION.tgz $VERSION dustin@941: dustin@941: echo "Done here.\n\n"