2012-08-14 14:59:10 +00:00
|
|
|
#!/bin/bash
|
2011-03-04 16:02:28 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2017-01-20 17:29:59 +00:00
|
|
|
VERSION=1.12.1
|
2013-04-05 01:50:39 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2011-03-04 16:02:28 +00:00
|
|
|
if [ -d util/buildscripts/ ]; then
|
2012-08-14 14:59:10 +00:00
|
|
|
rm -rf release/dojo
|
|
|
|
|
2011-03-04 16:02:28 +00:00
|
|
|
pushd util/buildscripts
|
2013-04-05 01:50:39 +00:00
|
|
|
./build.sh profile=../../tt-rss action=release optimize=shrinksafe cssOptimize=comments
|
2011-03-04 16:02:28 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
if [ -d release/dojo ]; then
|
2011-11-08 16:40:44 +00:00
|
|
|
rm -rf ../dojo ../dijit
|
2012-08-14 14:59:10 +00:00
|
|
|
cp -r release/dojo/dojo ..
|
|
|
|
cp -r release/dojo/dijit ..
|
2013-04-02 16:06:04 +00:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
find dojo -name '*uncompressed*' -exec rm -- {} \;
|
|
|
|
find dijit -name '*uncompressed*' -exec rm -- {} \;
|
2011-03-04 16:02:28 +00:00
|
|
|
else
|
|
|
|
echo $0: ERROR: Dojo build seems to have failed.
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo $0: ERROR: Please unpack Dojo source release into current directory.
|
2013-04-05 01:50:39 +00:00
|
|
|
fi
|