[Mapbender-commits] r7070 - in trunk/mapbender: . build
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Oct 28 07:33:35 EDT 2010
Author: christoph
Date: 2010-10-28 04:33:35 -0700 (Thu, 28 Oct 2010)
New Revision: 7070
Added:
trunk/mapbender/build/
trunk/mapbender/build/build.sh
Log:
rudimentary build script (exports sources and zips them)
Added: trunk/mapbender/build/build.sh
===================================================================
--- trunk/mapbender/build/build.sh (rev 0)
+++ trunk/mapbender/build/build.sh 2010-10-28 11:33:35 UTC (rev 7070)
@@ -0,0 +1,39 @@
+#!/bin/bash
+#
+# expecting three input params
+# $1 - the name of the release branch at
+#
+# https://svn.osgeo.org/mapbender/branches, for example 2.4.5
+# $2 - the SVN username for https://svn.osgeo.org/mapbender
+
+#
+#set constants
+#
+
+# the name of the folder where the build process happens
+TODAY=`date +%Y-%m-%d_%H.%M.%S`
+
+# create folder for build
+svn export ../ ../mapbender_latest/
+
+
+# compress JS files
+#echo "compressing JS ..."
+#cd $FOLDER 2>/dev/null
+#for file in `find -type f -name *.js`
+#do
+# echo "minifying $file ..."
+# ORIG=$file"_orig"
+# mv $file $ORIG 2>/dev/null
+# php5 ../jsmin.php $ORIG > $file
+# rm $ORIG 2>/dev/null
+#done
+
+
+# zip build folder
+ZIP_FILENAME="mapbender_latest.zip"
+cd ../
+zip -rq $ZIP_FILENAME mapbender_latest
+
+# remove build folder
+rm -rf ../mapbender_latest/
\ No newline at end of file
Property changes on: trunk/mapbender/build/build.sh
___________________________________________________________________
Added: svn:executable
+ *
More information about the Mapbender_commits
mailing list