[ttml1, ttml2] add regenerate (rg) and regenerate+commit (rgc) targets
authorGlenn Adams <glenn@skynav.com>
Sun, 25 Aug 2013 11:00:05 -0600
changeset 496 ca1aa8281cfa
parent 495 04f61e9586e3
child 497 e3d5132b91e0
[ttml1, ttml2] add regenerate (rg) and regenerate+commit (rgc) targets
ttml1/spec/build.xml
ttml2/spec/build.xml
--- a/ttml1/spec/build.xml	Sun Aug 25 10:49:10 2013 -0600
+++ b/ttml1/spec/build.xml	Sun Aug 25 11:00:05 2013 -0600
@@ -321,4 +321,34 @@
         </delete>
     </target>
 
+    <target name="kwexpand">
+        <exec executable="hg">
+          <arg value="kwexpand"/>
+          <arg value="ttml1.xml"/>
+        </exec>
+    </target>
+
+    <target name="kwshrink">
+        <exec executable="hg">
+          <arg value="kwshrink"/>
+          <arg value="ttml1.xml"/>
+        </exec>
+    </target>
+
+    <target name="rg" description="Regenerate using shortened generation, while expanding keywords."
+            depends="kwexpand,sg,kwshrink">
+    </target>
+
+    <target name="commit">
+        <exec executable="hg">
+          <arg value="commit"/>
+          <arg value="-m"/>
+          <arg value="[ttml1] regenerate ED"/>
+        </exec>
+    </target>
+
+    <target name="rgc" description="Regenerate and commit."
+            depends="rg,commit">
+    </target>
+
 </project>
--- a/ttml2/spec/build.xml	Sun Aug 25 10:49:10 2013 -0600
+++ b/ttml2/spec/build.xml	Sun Aug 25 11:00:05 2013 -0600
@@ -213,4 +213,34 @@
 	    depends="generate-schema-archives,validate-tt-specs-dont-build-escapes,html">
     </target>
 
+    <target name="kwexpand">
+        <exec executable="hg">
+          <arg value="kwexpand"/>
+          <arg value="ttml2.xml"/>
+        </exec>
+    </target>
+
+    <target name="kwshrink">
+        <exec executable="hg">
+          <arg value="kwshrink"/>
+          <arg value="ttml2.xml"/>
+        </exec>
+    </target>
+
+    <target name="rg" description="Regenerate using shortened generation, while expanding keywords."
+            depends="kwexpand,sg,kwshrink">
+    </target>
+
+    <target name="commit">
+        <exec executable="hg">
+          <arg value="commit"/>
+          <arg value="-m"/>
+          <arg value="[ttml2] regenerate ED"/>
+        </exec>
+    </target>
+
+    <target name="rgc" description="Regenerate and commit."
+            depends="rg,commit">
+    </target>
+
 </project>