[cvs-annodex] commit (/annodex): scripts/trunk/m2anx

conrad nobody at lists.annodex.net
Thu Sep 9 13:49:43 EST 2004


Update of /annodex (new revision 554)

Modified files:
   scripts/trunk/m2anx

Log Message:
add validation of input CMML file to m2anx


Modified: scripts/trunk/m2anx
===================================================================
--- scripts/trunk/m2anx	2004-09-09 03:19:29 UTC (rev 553)
+++ scripts/trunk/m2anx	2004-09-09 03:49:42 UTC (rev 554)
@@ -360,7 +360,11 @@
 anx_inputs=""
 
 if test -e $CMMLIN ; then
-  anx_inputs="$anx_inputs -t text/x-cmml $CMMLIN"
+  if try_run "Validating CMML" cmml-validate $CMMLIN ; then
+    anx_inputs="$anx_inputs -t text/x-cmml $CMMLIN"
+  else
+    verbose_echo "Ignoring invalid CMML file $CMMLIN"
+  fi
 fi
 
 case $audio_codec in


-- 
conrad



More information about the cvs-annodex mailing list