[Commits] r1015 - apps/opengeo/geoexplorer/branches/0.1.x/build
commits at geoext.org
commits at geoext.org
Mon Jun 8 18:33:00 CEST 2009
Author: tschaub
Date: 2009-06-08 18:32:59 +0200 (Mon, 08 Jun 2009)
New Revision: 1015
Added:
apps/opengeo/geoexplorer/branches/0.1.x/build/Makefile
Removed:
apps/opengeo/geoexplorer/branches/0.1.x/build/deploy.sh
Log:
Preferring tasks in a makefile.
Added: apps/opengeo/geoexplorer/branches/0.1.x/build/Makefile
===================================================================
--- apps/opengeo/geoexplorer/branches/0.1.x/build/Makefile (rev 0)
+++ apps/opengeo/geoexplorer/branches/0.1.x/build/Makefile 2009-06-08 16:32:59 UTC (rev 1015)
@@ -0,0 +1,41 @@
+# Makefile for GeoExplorer apps
+
+APP_NAME = GeoExplorer
+ZIP_NAME = $(APP_NAME).zip
+
+.PHONEY: help clean app zip
+
+help:
+ @echo "Please use 'make <target>' where <target> is one of"
+ @echo " app to make a standalone dir of app resources"
+ @echo " zip to make a zip archive of a standalone app"
+ @echo
+ @echo "Example use:"
+ @echo " make app"
+ @echo " make app APP_NAME=MyApp"
+ @echo " make zip"
+ @echo " make zip ZIP_NAME=MyZip.zip"
+
+clean:
+ -rm -rf $(APP_NAME)
+ -rm -f $(ZIP_NAME)
+
+app:
+ @echo "Building the application."
+ mkdir -p $(APP_NAME)/script $(APP_NAME)/theme
+
+ jsbuild build.cfg -v -o $(APP_NAME)/script/
+
+ svn export --force ../theme $(APP_NAME)/theme/app
+ svn export --force ../externals/openlayers/theme/default/ $(APP_NAME)/theme/ol
+ svn export --force ../externals/geoext/resources $(APP_NAME)/theme/gx
+
+ cp ../index.html $(APP_NAME)
+ cp ../about.html $(APP_NAME)
+ cp ../license.txt $(APP_NAME)
+
+
+zip: clean app
+ @echo "Archiving the application."
+ zip $(ZIP_NAME) -r $(APP_NAME)
+
Deleted: apps/opengeo/geoexplorer/branches/0.1.x/build/deploy.sh
===================================================================
--- apps/opengeo/geoexplorer/branches/0.1.x/build/deploy.sh 2009-06-05 23:31:31 UTC (rev 1014)
+++ apps/opengeo/geoexplorer/branches/0.1.x/build/deploy.sh 2009-06-08 16:32:59 UTC (rev 1015)
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-# deploy.sh: Builds scripts, copies theme resources, and creates an archive
-
-# switch to the build/ dir if we're not already there
-BUILD_DIR=`dirname $(which $0)`
-cd $BUILD_DIR
-
-mkdir -p GeoExplorer/script
-
-# build scripts
-jsbuild build.cfg -v -o GeoExplorer/script/
-
-# copy theme resources
-svn export --force ../theme GeoExplorer/theme
-svn export --force ../externals/openlayers/theme/default/ GeoExplorer/theme/oldefault
-svn export --force ../externals/geoext/resources GeoExplorer/theme/gx
-
-# copy app loader and info files
-cp ../index.html GeoExplorer
-cp ../about.html GeoExplorer
-cp ../license.txt GeoExplorer
-
-zip GeoExplorer.zip -r GeoExplorer
\ No newline at end of file
More information about the Commits
mailing list