From a089699c8915636ba4f158d77dba9b012bc93208 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 4 Mar 2011 19:02:28 +0300 Subject: build custom layer of Dojo to speed up loading of tt-rss (refs #293) --- lib/dojo-src/rebuild-dojo.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 lib/dojo-src/rebuild-dojo.sh (limited to 'lib/dojo-src/rebuild-dojo.sh') diff --git a/lib/dojo-src/rebuild-dojo.sh b/lib/dojo-src/rebuild-dojo.sh new file mode 100755 index 000000000..708627537 --- /dev/null +++ b/lib/dojo-src/rebuild-dojo.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# This script rebuilds customized layer of Dojo for tt-rss +# Place unpacked Dojo source release in this directory and run this script. +# It will automatically replace previous build of Dojo in ../dojo + +# Dojo requires Java runtime to build. Further information on rebuilding Dojo +# is available here: http://dojotoolkit.org/reference-guide/build/index.html + +if [ -d util/buildscripts/ ]; then + pushd util/buildscripts + ./build.sh profileFile=../../profile.js action=clean,release version=1.5.0 releaseName= + popd + + if [ -d release/dojo ]; then + rm -rf ../dojo + cp -r release/dojo .. + else + echo $0: ERROR: Dojo build seems to have failed. + fi +else + echo $0: ERROR: Please unpack Dojo source release into current directory. +fi -- cgit v1.2.3-54-g00ecf