annotate build.sh @ 1434:ff5a402cd63d tip

set version to 2.7-SNAPSHOT for default branch
author Marco Lechner, Bundesamt fuer Strahlenschutz, SW 2.1 <mlechner@bfs.de>
date Fri, 07 Apr 2017 11:32:26 +0200
parents f428b7d8f19b
children
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
1395
f428b7d8f19b SENCHAPATH now can be preset by using export SENCHAPATH=... before ./build.sh
Marco Lechner, Bundesamt fuer Strahlenschutz, SW 2.1 <mlechner@bfs.de>
parents: 1378
diff changeset
2 #Fallback: SENCHAPATH=~/bin/Sencha/Cmd/4.0.5.87/sencha
f428b7d8f19b SENCHAPATH now can be preset by using export SENCHAPATH=... before ./build.sh
Marco Lechner, Bundesamt fuer Strahlenschutz, SW 2.1 <mlechner@bfs.de>
parents: 1378
diff changeset
3 if [ -z $SENCHAPATH ]; then SENCHAPATH="~/bin/Sencha/Cmd/4.0.5.87/"; fi
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
4 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
5 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
6
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 # 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
8 echo "Minifying...."
1395
f428b7d8f19b SENCHAPATH now can be preset by using export SENCHAPATH=... before ./build.sh
Marco Lechner, Bundesamt fuer Strahlenschutz, SW 2.1 <mlechner@bfs.de>
parents: 1378
diff changeset
9 $SENCHAPATH/sencha --sdk-path extjs compile \
1378
0b2d6db2be7e Added additional resources to compile statement.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1277
diff changeset
10 --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
11 -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
12
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 # 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
14 # 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
15 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
16
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 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
18 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
19 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
20
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 # 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
22 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
23 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
24 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
25 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
26
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/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
28 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
29 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
30 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
31 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
32 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
33 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
34 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
35 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
36
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 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
38 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
39
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
40 echo "Done here.\n\n"

http://lada.wald.intevation.org