diff options
author | Chris Little <chrislit@crosswire.org> | 2009-10-29 00:11:41 +0000 |
---|---|---|
committer | Chris Little <chrislit@crosswire.org> | 2009-10-29 00:11:41 +0000 |
commit | 3945ec380634d8d483ca6ee9e07bf06534896cf2 (patch) | |
tree | 922f5f60994f69958abbb5b36daed7861459bedd /modules/perlconverters/usfm2osis.pl | |
parent | d49d8e66ec16bb578c9ed133824c3db45f7b5a02 (diff) | |
download | sword-tools-3945ec380634d8d483ca6ee9e07bf06534896cf2.tar.gz |
finished adding revision/date info to usage statement
git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@225 07627401-56e2-0310-80f4-f8cd0041bdcd
Diffstat (limited to 'modules/perlconverters/usfm2osis.pl')
-rw-r--r-- | modules/perlconverters/usfm2osis.pl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/perlconverters/usfm2osis.pl b/modules/perlconverters/usfm2osis.pl index b7b37ca..055d1e0 100644 --- a/modules/perlconverters/usfm2osis.pl +++ b/modules/perlconverters/usfm2osis.pl @@ -43,8 +43,8 @@ use utf8; # Stores the script version and date $version = "1.7"; -$date = qw/$Date$/; -$rev = qw/$Rev$/; +$date = '$Date$'; +$rev = '$Rev$'; # Sets the version of OSIS used in the OSIS header $osisVersion = "2.1.1"; # Stores the USFM Version @@ -80,6 +80,11 @@ $usfmVersion = "2.2"; # The USFM reference document can be found at http://www.u "BLT" => "Bel", "ADE" => "AddEsth" ); +$date =~ /(\d{4}-\d{2}-\d{2})/; +$rev .= "($1)"; +$rev =~ s/\$//g; +$rev =~ s/Rev: //; + # Generates a list of available encodings. use Encode; @encodingList = Encode->encodings(":all"); @@ -90,7 +95,7 @@ $encodings =~ s/\, $//; # Syntax instructions if (scalar(@ARGV) < 2) { - print "\nusfm2osis.pl -- USFM $usfmVersion to OSIS $osisVersion converter version $version-$rev\n($date)\n\nSyntax: usfm2osis.pl <osisWork> [-o OSIS-file] [-e USFM encoding] <USFM filenames|wildcard>\n"; + print "\nusfm2osis.pl -- USFM $usfmVersion to OSIS $osisVersion converter version $version\nRevision $rev\n\nSyntax: usfm2osis.pl <osisWork> [-o OSIS-file] [-e USFM encoding] <USFM filenames|wildcard>\n"; print "- Arguments in braces < > are required. Arguments in brackets [ ] are optional.\n"; print "- The osisWork is a short name with no spaces which will identify your module.\n"; print "- If no -o option is specified for the output filename, the default output file is: \n\tosisWork.osis.xml.\n"; |