comparison build.sh @ 941:94d8ea3b98ba

Added a simple build script, which will not work in every environment. You need to edit the path to sencha command in order tu run this script.
author Dustin Demuth <dustin@intevation.de>
date Thu, 01 Oct 2015 10:24:06 +0200
parents
children a152353eba26
comparison
equal deleted inserted replaced
940:1e2895bfa410 941:94d8ea3b98ba
1
2 SENCHAPATH=~/bin/Sencha/Cmd/4.0.5.87/sencha
3 VNUMBER=$(grep Lada.clientVersion app.js | cut -d '=' -f 2 | cut -d "'" -f 2)
4 VERSION=lada-client-$VNUMBER
5
6 # Minify
7 echo "Minifying...."
8 $SENCHAPATH --sdk-path extjs compile \
9 --classpath=app,resources/lib/ext/upload,resources/lib/ext/i18n page \
10 -yui -i index.html -o $VERSION/index.html
11
12 # Copy additional files
13 # Extjs Styles
14 echo "Copying additional files...."
15
16 mkdir --parents $VERSION/extjs/resources
17 cp -r extjs/resources/css $VERSION/extjs/resources
18 cp -r extjs/resources/ext-theme-gray $VERSION/extjs/resources
19
20 # Additional resources
21 mkdir --parents $VERSION/resources/css
22 mkdir --parents $VERSION/resources/i18n
23 mkdir --parents $VERSION/resources/img
24 mkdir --parents $VERSION/resources/lib
25
26 cp -r resources/css $VERSION/resources/
27 cp -r resources/img $VERSION/resources/
28 cp -r resources/i18n $VERSION/resources/
29 cp -r resources/lib/Blob $VERSION/resources/lib/
30 cp -r resources/lib/Blob.js-master $VERSION/resources/lib/
31 cp -r resources/lib/FileSaver $VERSION/resources/lib/
32 cp -r resources/lib/FileSaver.js-master $VERSION/resources/lib/
33 cp -r resources/lib/OpenLayers $VERSION/resources/lib/
34 cp -r resources/lib/openlayers-release-2.13.1 $VERSION/resources/lib/
35
36 echo "Compressing...."
37 tar -czf $VERSION.tgz $VERSION
38
39 echo "Done here.\n\n"

http://lada.wald.intevation.org