mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 01:25:56 +00:00
Add css optimization to dojo builds
This commit is contained in:
2
lib/dojo-src/.gitignore
vendored
2
lib/dojo-src/.gitignore
vendored
@@ -3,3 +3,5 @@ dojo
|
||||
dojox
|
||||
release
|
||||
util
|
||||
dojo-release-*
|
||||
log*
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user