annotate build.sh @ 1388:634cce8b4c09 release-2.5

Added tag 2.5.1 for changeset a347cb704f93
author Tom Gottfried <tom@intevation.de>
date Mon, 27 Feb 2017 11:56:41 +0100
parents 0b2d6db2be7e
children f428b7d8f19b
rev   line source
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
1
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
2 SENCHAPATH=~/bin/Sencha/Cmd/4.0.5.87/sencha
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
3 VNUMBER=$(grep Lada.clientVersion app.js | cut -d '=' -f 2 | cut -d "'" -f 2)
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
4 VERSION=lada-client-$VNUMBER
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
5
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
6 # Minify
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
7 echo "Minifying...."
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
8 $SENCHAPATH --sdk-path extjs compile \
1378
0b2d6db2be7e Added additional resources to compile statement.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1277
diff changeset
9 --classpath=app,resources/lib/ext/upload,resources/lib/ext/i18n,resources/lib/ext/grid,resources/lib/ext/util page \
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
10 -yui -i index.html -o $VERSION/index.html
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
11
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
12 # Copy additional files
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
13 # Extjs Styles
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
14 echo "Copying additional files...."
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
15
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
16 mkdir --parents $VERSION/extjs/resources
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
17 cp -r extjs/resources/css $VERSION/extjs/resources
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
18 cp -r extjs/resources/ext-theme-gray $VERSION/extjs/resources
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
19
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
20 # Additional resources
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
21 mkdir --parents $VERSION/resources/css
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
22 mkdir --parents $VERSION/resources/i18n
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
23 mkdir --parents $VERSION/resources/img
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
24 mkdir --parents $VERSION/resources/lib
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
25
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
26 cp -r resources/css $VERSION/resources/
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
27 cp -r resources/img $VERSION/resources/
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
28 cp -r resources/i18n $VERSION/resources/
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
29 cp -r resources/lib/Blob $VERSION/resources/lib/
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
30 cp -r resources/lib/Blob.js-master $VERSION/resources/lib/
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
31 cp -r resources/lib/FileSaver $VERSION/resources/lib/
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
32 cp -r resources/lib/FileSaver.js-master $VERSION/resources/lib/
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
33 cp -r resources/lib/OpenLayers $VERSION/resources/lib/
1277
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents: 941
diff changeset
34 cp -r resources/lib/ol2-release-2.13.1 $VERSION/resources/lib/
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
35
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
36 echo "Compressing...."
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
37 tar -czf $VERSION.tgz $VERSION
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
38
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.
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
39 echo "Done here.\n\n"

http://lada.wald.intevation.org