[open-ils-commits] r10257 - trunk/build/i18n

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Aug 4 23:12:27 EDT 2008


Author: dbs
Date: 2008-08-04 23:12:18 -0400 (Mon, 04 Aug 2008)
New Revision: 10257

Modified:
   trunk/build/i18n/Makefile
Log:
Add an "install" target to place built i18n files into the correct location in the source tree


Modified: trunk/build/i18n/Makefile
===================================================================
--- trunk/build/i18n/Makefile	2008-08-05 01:58:38 UTC (rev 10256)
+++ trunk/build/i18n/Makefile	2008-08-05 03:12:18 UTC (rev 10257)
@@ -36,8 +36,11 @@
 # To update a set of translated PO files with new or changed en-US strings:
 #   make LOCALE=ll-LL updatepo
 #
-# To create a new set of project files (DTDs, JavaScript message catalogs):
-#   make LOCALE=ll-LL newproject
+# To create a set of translated project files (DTDs, JavaScript message catalogs):
+#   make LOCALE=ll-LL project
+#
+# To install a set of translated project files:
+#   make LOCALE=ll-LL install
 
 # Generate PO files from all POT files in POOUTDIR for locale LOCALE
 newpo: 
@@ -50,7 +53,7 @@
 
 # Generate DTD, JavaScript message catalogs, fieldmapper IDL,
 # and SQL insert files from PO for locale LOCALE
-newproject: po2dtds po2props po2sql fmidlpo2entity po2ils
+project: po2dtds po2props po2sql fmidlpo2entity po2ils
 	@echo "Generated project files for locale $(LOCALE)"
 
 # Update PO files with new and changed strings from POT files
@@ -107,3 +110,20 @@
 # Generate a set of entity declarations from a PO file
 fmidlpo2entity:
 	@scripts/fieldmapper.py --entity $(POINDIR)/$(LOCALE)/$(FMIDLPO) --output $(PROJECT)/$(LOCALE)/$(FMIDLENTITY)
+
+# Install updated project files to their corresponding location in the source tree
+install: updatepo project 
+	mkdir $(CHROME_PROPSDIR)/$(LOCALE)
+	cp $(PROJECT)/$(LOCALE)/auth.properties $(CHROME_PROPSDIR)/$(LOCALE)/.
+	cp $(PROJECT)/$(LOCALE)/offline.properties $(CHROME_PROPSDIR)/$(LOCALE)/.
+	mkdir $(SERVER_PROPSDIR)/$(LOCALE)
+	cp $(PROJECT)/$(LOCALE)/admin.properties $(SERVER_PROPSDIR)/$(LOCALE)/.
+	cp $(PROJECT)/$(LOCALE)/cat.properties $(SERVER_PROPSDIR)/$(LOCALE)/.
+	cp $(PROJECT)/$(LOCALE)/circ.properties $(SERVER_PROPSDIR)/$(LOCALE)/.
+	cp $(PROJECT)/$(LOCALE)/common.properties $(SERVER_PROPSDIR)/$(LOCALE)/.
+	cp $(PROJECT)/$(LOCALE)/multiclass_search_help.html $(SERVER_PROPSDIR)/$(LOCALE)/.
+	cp $(PROJECT)/$(LOCALE)/patron.properties $(SERVER_PROPSDIR)/$(LOCALE)/.
+	mkdir $(DTDDIR)/$(LOCALE)
+	cp $(PROJECT)/$(LOCALE)/lang.dtd $(DTDDIR)/$(LOCALE)/
+	cp $(PROJECT)/$(LOCALE)/opac.dtd $(DTDDIR)/$(LOCALE)/
+



More information about the open-ils-commits mailing list