[Commits] r878 - apps/opengeo/geoexplorer/trunk/build
commits at geoext.org
commits at geoext.org
Thu May 28 17:22:09 CEST 2009
Author: dwins
Date: 2009-05-28 17:22:09 +0200 (Thu, 28 May 2009)
New Revision: 878
Modified:
apps/opengeo/geoexplorer/trunk/build/build.bash
Log:
Clean up the build script a bit, in particular make it independent of the working directory when it's run
Modified: apps/opengeo/geoexplorer/trunk/build/build.bash
===================================================================
--- apps/opengeo/geoexplorer/trunk/build/build.bash 2009-05-28 11:57:49 UTC (rev 877)
+++ apps/opengeo/geoexplorer/trunk/build/build.bash 2009-05-28 15:22:09 UTC (rev 878)
@@ -1,12 +1,22 @@
+#!/bin/sh
+
+# build.bash: Generate minified JS for GeoExplorer
+## Accepts no arguments, just run it and wait a bit.
+
+
+# switch to the build/ dir if we're not already there
+BUILD_DIR=`dirname $(which $0)`
+cd $BUILD_DIR
+
+# actual minification
jsbuild -o ../script/ -v -s GeoExplorer.js geoexplorer-all.cfg
-
# cat'ing of files doesn't appear to be working yet. Let's do
# it ourselves.
-cat ../script/OpenLayers.js > ../script/temp.js
-cat ../script/GeoExt.js >> ../script/temp.js
-cat ../script/GeoExplorer.js >> ../script/temp.js
+cat ../script/OpenLayers.js \
+ ../script/GeoExt.js \
+ ../script/GeoExplorer.js > ../script/temp.js
rm ../script/OpenLayers.js ../script/GeoExt.js ../script/GeoExplorer.js
-mv ../script/temp.js ../script/GeoExplorer.js
\ No newline at end of file
+mv ../script/temp.js ../script/GeoExplorer.js
More information about the Commits
mailing list