[open-ils-commits] r11477 - trunk/Open-ILS/xul/staff_client

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Dec 9 13:53:44 EST 2008


Author: dbs
Date: 2008-12-09 13:53:41 -0500 (Tue, 09 Dec 2008)
New Revision: 11477

Modified:
   trunk/Open-ILS/xul/staff_client/Makefile.am
Log:
Add locales to chrome.manifest
Force overwrite of protected files in build directory (mostly for trunk convenience)
Shut the build up


Modified: trunk/Open-ILS/xul/staff_client/Makefile.am
===================================================================
--- trunk/Open-ILS/xul/staff_client/Makefile.am	2008-12-09 18:14:28 UTC (rev 11476)
+++ trunk/Open-ILS/xul/staff_client/Makefile.am	2008-12-09 18:53:41 UTC (rev 11477)
@@ -10,36 +10,42 @@
 
 install-exec-local: build
 
-build: build_dir chrome2remote generated custom_skins open-ils stamp
+build: build_dir chrome2remote localize_manifest generated custom_skins open-ils stamp
 	@echo To test the staff client:
 	@echo "  cd build/"
 	@echo "  xulrunner application.ini"
 
 build_dir:
 	@echo ' * Creating and populating build/ '
-	mkdir -p build/
-	cp -R chrome build/
-	cp -R server build/
-	cp -R defaults build/
-	cp -R components build/
-	cp application.ini build/
-	cp -R build/chrome/content/util/ build/server/
-	cp -R build/chrome/content/auth/ build/server/
-	cp build/chrome/content/main/constants.js build/server/main/constants.js
-	cp build/chrome/content/main/simple_auth.xul build/server/main/simple_auth.xul
-	cp build/chrome/content/main/bindings.xml build/server/main/bindings.xml
-	cp build/chrome/content/OpenILS/data.js build/server/OpenILS/data.js
-	cp build/chrome/content/OpenILS/global_util.js build/server/OpenILS/global_util.js
-	external/prune_dirs.sh build/
+	@mkdir -p build/
+	@cp -fR chrome build/
+	@cp -fR server build/
+	@cp -fR defaults build/
+	@cp -fR components build/
+	@cp application.ini build/
+	@cp -fR build/chrome/content/util/ build/server/
+	@cp -fR build/chrome/content/auth/ build/server/
+	@cp build/chrome/content/main/constants.js build/server/main/constants.js
+	@cp build/chrome/content/main/simple_auth.xul build/server/main/simple_auth.xul
+	@cp build/chrome/content/main/bindings.xml build/server/main/bindings.xml
+	@cp build/chrome/content/OpenILS/data.js build/server/OpenILS/data.js
+	@cp build/chrome/content/OpenILS/global_util.js build/server/OpenILS/global_util.js
+	@external/prune_dirs.sh build/
 
 # Convert chrome to remote for server localization
 chrome2remote:
-	sed -i 's/chrome:\/\/open_ils_staff_client\/locale\//\/xul\/server\/locale\/<\!--#echo var=locale-->\//' build/server/auth/verify_credentials.xul
-	sed -i 's/chrome:\/\/open_ils_staff_client\/locale\//\/xul\/server\/locale\/<\!--#echo var=locale-->\//' build/server/main/simple_auth.xul
+	@sed -i 's/chrome:\/\/open_ils_staff_client\/locale\//\/xul\/server\/locale\/<\!--#echo var=locale-->\//' build/server/auth/verify_credentials.xul
+	@sed -i 's/chrome:\/\/open_ils_staff_client\/locale\//\/xul\/server\/locale\/<\!--#echo var=locale-->\//' build/server/main/simple_auth.xul
 	@for loc in $(CHROME_LOCALES); do \
-		cp -r chrome/locale/$$loc build/server/locale/. ; \
+		cp -fr chrome/locale/$$loc build/server/locale/. ; \
 	done;
 
+# Update the manifest for our installed locales
+localize_manifest:
+	@for loc in $(CHROME_LOCALES) ; do \
+		if [ "$$loc" != "en-US" ]; then ( echo "locale open_ils_staff_client $$loc locale/$$loc/" >> build/chrome/chrome.manifest ) ; fi; \
+	done;
+
 stamp:
 	@/bin/date +"%Y%m%d.%H%M%S" > build/BUILD_ID
 	@if [ -n "${STAFF_CLIENT_BUILD_ID}" ]; then ( echo "Stamping with Build ID: ${STAFF_CLIENT_BUILD_ID}" ; echo ${STAFF_CLIENT_BUILD_ID} > build/BUILD_ID ) ; fi
@@ -55,15 +61,15 @@
 
 generated:
 	@echo ' * Grabbing lang.dtd from the OPAC code '
-	cp @top_srcdir@/Open-ILS/web/opac/locale/en-US/lang.dtd build/chrome/locale/en-US/
+	@cp @top_srcdir@/Open-ILS/web/opac/locale/en-US/lang.dtd build/chrome/locale/en-US/
 
 open-ils:
 	@echo ' * Grabbing more OPAC code and legacy code and custom code'
-	cp @top_srcdir@/Open-ILS/web/opac/common/js/*.js build/chrome/content/OpenILS/util/
-	cp $(OPENSRF_JSLIBS)/*.js build/chrome/content/OpenILS/util/
-	external/prune_dirs.sh build/
+	@cp @top_srcdir@/Open-ILS/web/opac/common/js/*.js build/chrome/content/OpenILS/util/
+	@cp $(OPENSRF_JSLIBS)/*.js build/chrome/content/OpenILS/util/
+	@external/prune_dirs.sh build/
 
 custom_skins:
 	@for skin in $(SKIN_CSS); do \
-		if [ ! -f "$$skin" ]; then touch build/"$$skin"; fi \
+		if [ ! -f "$$skin" ]; then ( touch build/"$$skin" ); fi \
 	done;



More information about the open-ils-commits mailing list