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
7 # Dojo requires Java runtime to build. Further information on rebuilding Dojo
8 # is available here: http://dojotoolkit.org/reference-guide/build/index.html
12 # Download and extract dojo src code if it doesn't already exist
13 if [ ! -d "dojo" ]; then
14 TARBALL
=dojo-release-
$VERSION-src.
tar.gz
15 if [ ! -f $TARBALL ]; then
16 wget
-q http
://download.dojotoolkit.org
/release-
$VERSION/$TARBALL
19 mv dojo-release-
$VERSION-src/* .
20 rm -rf dojo-release-
$VERSION-src
23 if [ -d util
/buildscripts
/ ]; then
26 pushd util
/buildscripts
27 .
/build.sh profile
=..
/..
/tt-rss action
=release optimize
=shrinksafe cssOptimize
=comments
30 if [ -d release
/dojo
]; then
31 rm -rf ..
/dojo ..
/dijit
32 cp -r release
/dojo
/dojo ..
33 cp -r release
/dojo
/dijit ..
37 find dojo
-name '*uncompressed*' -exec rm -- {} \
;
38 find dijit
-name '*uncompressed*' -exec rm -- {} \
;
40 echo $0: ERROR
: Dojo build seems to have failed.
43 echo $0: ERROR
: Please unpack Dojo
source release into current directory.