dustin@941: dustin@941: SENCHAPATH=~/bin/Sencha/Cmd/4.0.5.87/sencha 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...." dustin@941: $SENCHAPATH --sdk-path extjs compile \ dustin@941: --classpath=app,resources/lib/ext/upload,resources/lib/ext/i18n 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/ dustin@941: cp -r resources/lib/openlayers-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"