]>
Commit | Line | Data |
---|---|---|
1354d172 | 1 | #!/bin/bash |
a089699c AD |
2 | |
3 | # This script rebuilds customized layer of Dojo for tt-rss | |
4 | # Place unpacked Dojo source release in this directory and run this script. | |
5 | # It will automatically replace previous build of Dojo in ../dojo | |
6 | ||
7 | # Dojo requires Java runtime to build. Further information on rebuilding Dojo | |
8 | # is available here: http://dojotoolkit.org/reference-guide/build/index.html | |
9 | ||
10 | if [ -d util/buildscripts/ ]; then | |
1354d172 AD |
11 | rm -rf release/dojo |
12 | ||
a089699c | 13 | pushd util/buildscripts |
1354d172 | 14 | ./build.sh profile=../../tt-rss action=clean,release optimize=shrinksafe |
a089699c AD |
15 | popd |
16 | ||
17 | if [ -d release/dojo ]; then | |
81bea17a | 18 | rm -rf ../dojo ../dijit |
1354d172 AD |
19 | cp -r release/dojo/dojo .. |
20 | cp -r release/dojo/dijit .. | |
a089699c AD |
21 | else |
22 | echo $0: ERROR: Dojo build seems to have failed. | |
23 | fi | |
24 | else | |
25 | echo $0: ERROR: Please unpack Dojo source release into current directory. | |
26 | fi |