[Cvs-annodex] commit (annodex):
cmmlwiki/trunk/scripts/cmmlwiki-batch-import
conrad
nobody at lists.annodex.net
Fri Nov 10 09:13:52 UTC 2006
Update of /var/local/lib/svn/annodex (new revision 2545)
Modified files:
cmmlwiki/trunk/scripts/cmmlwiki-batch-import
Log Message:
add a description of the spec file format to `cmmlwiki-batch-import --help`
Modified: cmmlwiki/trunk/scripts/cmmlwiki-batch-import
===================================================================
--- cmmlwiki/trunk/scripts/cmmlwiki-batch-import 2006-11-10 08:42:48 UTC (rev 2544)
+++ cmmlwiki/trunk/scripts/cmmlwiki-batch-import 2006-11-10 09:13:50 UTC (rev 2545)
@@ -1,10 +1,7 @@
#!/usr/bin/env python
#
-# Copyright (C) 2005 CSIRO Australia
+# Copyright (C) 2006 CSIRO Australia
#
-# Based on sample code from the Python/XML HOWTO:
-# http://pyxml.sourceforge.net/topics/howto/xml-howto.html
-#
# You may find this script to be a useful example of processing CMML in
# python. Improvements and bugfixes welcome :-)
#
@@ -19,7 +16,14 @@
envpath = sys.argv[1]
spec_name = sys.argv[2]
except IndexError:
- print "Usage: cmmlwiki-import </path/to/wikienv/> file.spec"
+ print """Usage: cmmlwiki-batch-import </path/to/wikienv/> file.spec
+
+Where file.spec is a plain text file containing whitespace-separated
+records, one per line, of the format:
+
+wikiname cmml-filename ogg-filename
+"""
+
sys.exit(1)
# os.path.join: "if any component is an absolute path, all previous
--
conrad
More information about the cvs-annodex
mailing list