Permalink
Browse files

Updated build-all script (now includes minimization)

  • Loading branch information...
1 parent 9d5297c commit 88e29c31c3ce66d2dbebaebe256111d8058a3c17 @tapmodo committed Jan 26, 2013
Showing with 35 additions and 6 deletions.
  1. +35 −6 build/build-all.bash
View
@@ -1,18 +1,47 @@
#!/bin/bash
-pushd `dirname $0`
+pushd `dirname $0` > /dev/null
export JCROP_VERSION=${JCROP_VERSION-`cat VERSION`}
export JCROP_BUILD=${JCROP_BUILD-`date +"%Y%m%d"`}
+BASH=${BASH-/bin/bash}
-lessc less/main.less > ../demos/demo_files/main.css;
-lessc less/demos.less > ../demos/demo_files/demos.css;
+echo "Building Jcrop version $JCROP_VERSION"
+echo
+cat ../MIT-LICENSE.txt
+echo "Building all Jcrop related files"
-pushd demos;
+$BASH compile-css.bash
+$BASH minimize-css.bash
+$BASH minimize-js.bash
+
+echo -n "Building main CSS..."
+
+if lessc less/main.less > ../demos/demo_files/main.css
+then
+ echo "OK"
+else
+ echo "FAILED"
+fi
+
+echo -n "Building additional Jcrop demo CSS..."
+
+if lessc less/demos.less > ../demos/demo_files/demos.css
+then
+ echo "OK"
+else
+ echo "FAILED"
+fi
+
+pushd demos > /dev/null
+
+echo "Now building demo HTML"
php -q build.php;
+echo "Done building demo HTML"
#lessc less/docs.less > ../demos/demo_files/docs.css
-popd
-popd
+popd > /dev/null
+popd > /dev/null
+echo "Done processing Jcrop build"

0 comments on commit 88e29c3

Please sign in to comment.