summaryrefslogtreecommitdiff
path: root/print/bww2tex/patches
diff options
context:
space:
mode:
authorfredb <fredb>2003-01-23 18:16:40 +0000
committerfredb <fredb>2003-01-23 18:16:40 +0000
commit448dc2d62e0c239b737873e1bafe8bbc685628fc (patch)
treee5813956a9cd0d8ebe91bed9d2d703849c6365b0 /print/bww2tex/patches
parent8554fc3f8438dc2cd4a52cf522a104a32ccabe22 (diff)
downloadpkgsrc-448dc2d62e0c239b737873e1bafe8bbc685628fc.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')
-rw-r--r--print/bww2tex/patches/patch-aa31
-rw-r--r--print/bww2tex/patches/patch-ab68
2 files changed, 99 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);
+ }
+
diff --git a/print/bww2tex/patches/patch-ab b/print/bww2tex/patches/patch-ab
new file mode 100644
index 00000000000..e956866be27
--- /dev/null
+++ b/print/bww2tex/patches/patch-ab
@@ -0,0 +1,68 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/01/23 18:16:41 fredb Exp $
+
+--- makefile.orig Sun Jan 19 16:02:51 2003
++++ makefile Sun Jan 19 16:04:19 2003
+@@ -1,19 +1,58 @@
++CC = cc
++#CC = gcc
++
++LEX = flex
++YACC = bison
++
++BINNAME = bww2tex
++VERSION = 2.00
++
++DISTNAME = $(BINNAME)-$(VERSION)
++distdir = $(DISTNAME)
++
+ #
+ #
+ all: bww2tex
+ #
+ bww2tex: y.tab.o lex.yy.o
+- cc -g -o bww2tex y.tab.o lex.yy.o
++ $(CC) -g -o bww2tex y.tab.o lex.yy.o
+ #
+ lex.yy.o: lex.yy.c y.tab.h
+- cc -c lex.yy.c
++ $(CC) -c lex.yy.c
+ #
+ lex.yy.c: expressions.l tokensDat.h tokens.h
+- flex expressions.l
++ $(LEX) expressions.l
+ #
+ y.tab.o: y.tab.h y.tab.c tokensDat.h tokens.h
+- cc -c -g y.tab.c
++ $(CC) -c -g y.tab.c
+ #
+ y.tab.h y.tab.c: grammar.y
+- bison -t -v -b y -d grammar.y
++ $(YACC) -t -v -b y -d grammar.y
+ #
++
++clean:
++ rm -f y.*
++ -rm -rf $(distdir)
++ -rm -f $(distdir).tar $(distdir).tar.gz
++
++distclean: clean
++ rm -f $(BINNAME) *core *.o
++ chmod 644 *.tex *.bww *.y *.h *.l *.c makefile README
++
++
++distro: dist
++dist: distclean
++ mkdir $(distdir)
++ @for file in `ls`; do \
++ if test $$file != $(distdir); then \
++ cp -Rp $$file $(distdir)/$$file; \
++ fi; \
++ done
++ find $(distdir) -type l -exec rm -f {} \;
++ tar chof $(distdir).tar $(distdir)
++ gzip -f --best $(distdir).tar
++ rm -rf $(distdir)
++ @echo
++ @echo "$(distdir).tar.gz created"
++ @echo
++