Backport r11069 from trunk: Generate and place an en-US version of fm_IDL.dtd if...
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 6 Nov 2008 03:59:27 +0000 (03:59 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 6 Nov 2008 03:59:27 +0000 (03:59 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@11073 dcc99617-32d9-48b4-a31d-7c20da2025e4

build/i18n/Makefile

index 9ac2fdc..02cb697 100644 (file)
@@ -131,8 +131,13 @@ fmidl2pot:
 fmidlpo2entity:
        @scripts/fieldmapper.py --entity $(POINDIR)/$(LOCALE)/$(FMIDLPO) --output $(PROJECT)/$(LOCALE)/$(FMIDLENTITY)
 
+# Generate en-US DTD from a POT file; required if any other locale is installed
+fmidlpo2entity-en:
+       @scripts/fieldmapper.py --entity $(POINDIR)/en-US/$(FMIDLOUT) --output $(PROJECT)/en-US/$(FMIDLENTITY)
+       cp $(PROJECT)/en-US/$(FMIDLENTITY) $(DTDDIR)/en-US/
+
 # Install updated project files to their corresponding location in the source tree
-install: updatepo project fmidl2fmidlent
+install: updatepo project fmidl2fmidlent fmidlpo2entity-en
        mkdir -p $(CHROME_PROPSDIR)/$(LOCALE)
        cp $(PROJECT)/$(LOCALE)/auth.properties $(CHROME_PROPSDIR)/$(LOCALE)/.
        cp $(PROJECT)/$(LOCALE)/offline.properties $(CHROME_PROPSDIR)/$(LOCALE)/.