[haiku-commits] r40790 - haiku/trunk/build/jam

  • From: jonas@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 3 Mar 2011 13:58:02 +0100 (CET)

Author: kirilla
Date: 2011-03-03 13:58:02 +0100 (Thu, 03 Mar 2011)
New Revision: 40790
Changeset: http://dev.haiku-os.org/changeset/40790

Modified:
   haiku/trunk/build/jam/LocaleRules
Log:
Jam rule to add an attribute for catalog lookup of localized entry name.

Modified: haiku/trunk/build/jam/LocaleRules
===================================================================
--- haiku/trunk/build/jam/LocaleRules   2011-03-03 09:05:04 UTC (rev 40789)
+++ haiku/trunk/build/jam/LocaleRules   2011-03-03 12:58:02 UTC (rev 40790)
@@ -163,3 +163,23 @@
        # For the pseudo-target catkeys
        HAIKU_LOCALE_OUTPUT_CATKEYS += $(generatedCatalog:S=.catkeys) ;
 }
+
+rule AddCatalogEntryAttribute target
+{
+       # AddCatalogEntryAttribute <target> : <attribute value> ;
+       #
+       # <attribute value> should be of the form
+       #       "x-vnd.Haiku-App:context:string"
+               
+       CATALOG_ENTRY on $(target) = "$(2)" ;
+
+       Depends $(target) : <build>addattr ;
+       
+       AddCatalogEntryAttribute1 $(target) 
+               : <build>addattr ;
+}
+
+actions AddCatalogEntryAttribute1
+{
+       "$(2)" -t string "SYS:NAME" "$(CATALOG_ENTRY)" "$(1)"
+}


Other related posts:

  • » [haiku-commits] r40790 - haiku/trunk/build/jam - jonas