summaryrefslogtreecommitdiff
path: root/print/bww2tex/patches/patch-aa
diff options
context:
space:
mode:
authorfredb <fredb>2003-01-23 18:16:40 +0000
committerfredb <fredb>2003-01-23 18:16:40 +0000
commit7e256c2d33debf442664e9e8c12f005fb7be0bf2 (patch)
treee5813956a9cd0d8ebe91bed9d2d703849c6365b0 /print/bww2tex/patches/patch-aa
parent43dd759a2cd37701449a8179712528e069025722 (diff)
downloadpkgsrc-7e256c2d33debf442664e9e8c12f005fb7be0bf2.tar.gz
Initial import of bww2tex-2.00, a Bagpipe Music Writer Gold to BagpipeTeX
converter, submitted by David Griffith in PR pkg/19978.
Diffstat (limited to 'print/bww2tex/patches/patch-aa')
-rw-r--r--print/bww2tex/patches/patch-aa31
1 files changed, 31 insertions, 0 deletions
diff --git a/print/bww2tex/patches/patch-aa b/print/bww2tex/patches/patch-aa
new file mode 100644
index 00000000000..58c37e6613a
--- /dev/null
+++ b/print/bww2tex/patches/patch-aa
@@ -0,0 +1,31 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/01/23 18:16:41 fredb Exp $
+
+--- grammar.y.orig Sun Jan 19 16:02:42 2003
++++ grammar.y Sun Jan 19 16:02:59 2003
+@@ -697,18 +697,15 @@
+
+ if (argc > 1) /* if a file was named, open it for reading*/
+ {
+- if(! strncmp(argv[1],"help",4))
++ if(! strncmp(argv[1],"help",4) || ! strncmp(argv[1],"--help",4)
++ || ! strncmp(argv[1],"-h",4))
+ {
+- printf("%s","bmw2tex [input [output]]\n"
+- "The extension .bww will be added to the input"
+- " file name if .bmw or .bww is not already present\n"
+- "The extension .tex will be added to the output"
+- " file name if not already present\n"
+- "If an output file name is not given,"
+- " the input file name with .bww or .bmw replaced\n by"
+- " .tex will be used.\n"
+- "If no file names are given, stdin and stdout"
+- " will be used.\n");
++ printf("usage: bmw2tex [ input [ output ] ]\n\n"
++"Bagpipe Music Writer Gold to BagpipeTeX converter.\n\n"
++"If an extension is not specified for the input file, \".bmw\" or \".bww\"\n"
++"will be assumed. If an extension is not specified for the output file,\n"
++"\".tex\" is used. If no file names are given, standard input and\n"
++"output are used.\n\n");
+ exit(0);
+ }
+