diff options
author | Jeremy Christian <[email protected]> | 2013-04-04 21:50:39 -0400 |
---|---|---|
committer | Jeremy Christian <[email protected]> | 2013-04-04 21:50:39 -0400 |
commit | 4a88841363b664e5db9d1360d7f84597331eb8d9 (patch) | |
tree | 5119c79c051084f0b2ef70ef5c89186d3cb254a6 /lib/dojo-src/rebuild-dojo.sh | |
parent | 29c8fa080e28f6c1c43343d68c36de96f7f9f086 (diff) |
Add css optimization to dojo builds
Diffstat (limited to 'lib/dojo-src/rebuild-dojo.sh')
-rwxr-xr-x | lib/dojo-src/rebuild-dojo.sh | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/dojo-src/rebuild-dojo.sh b/lib/dojo-src/rebuild-dojo.sh index 76634dfbc..1e33c066e 100755 --- a/lib/dojo-src/rebuild-dojo.sh +++ b/lib/dojo-src/rebuild-dojo.sh @@ -7,11 +7,24 @@ # Dojo requires Java runtime to build. Further information on rebuilding Dojo # is available here: http://dojotoolkit.org/reference-guide/build/index.html +VERSION=1.8.3 + +# Download and extract dojo src code if it doesn't already exist +if [ ! -d "dojo" ]; then + TARBALL=dojo-release-$VERSION-src.tar.gz + if [ ! -f $TARBALL ]; then + wget -q http://download.dojotoolkit.org/release-$VERSION/$TARBALL + fi + tar -zxf $TARBALL + mv dojo-release-$VERSION-src/* . + rm -rf dojo-release-$VERSION-src +fi + if [ -d util/buildscripts/ ]; then rm -rf release/dojo pushd util/buildscripts - ./build.sh profile=../../tt-rss action=clean,release optimize=shrinksafe + ./build.sh profile=../../tt-rss action=release optimize=shrinksafe cssOptimize=comments popd if [ -d release/dojo ]; then @@ -28,4 +41,4 @@ if [ -d util/buildscripts/ ]; then fi else echo $0: ERROR: Please unpack Dojo source release into current directory. -fi +fi
\ No newline at end of file |