]> thyrsus.com Git - cupl.git/commitdiff
We have a man page.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 30 Jul 2002 18:10:55 +0000 (18:10 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 30 Jul 2002 18:10:55 +0000 (18:10 +0000)
Makefile
cupl.spec

index f041769c9af6f00499467ddee464b0adfa754de3..7563ad1037ce55796b5528e45b09ebc0e13d9f87 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -46,11 +46,14 @@ toktab.h: tokens.h
 lextest: lexer.c tokens.h tokdump.o
        $(CC) $(CFLAGS) -DMAIN lexer.c tokdump.o -o lextest 
 
+cupl.1: cupl.xml
+       xmlto man cupl.xml
+
 DOCS = READ.ME corc.doc cupl.doc cupl.xml cupl.lsm
 SOURCES = Makefile cupl.[lyh] $(MODULES:.o=.c)
 
-cupl-$(VERS).tar.gz: $(SOURCES) $(DOCS)
-       @ls $(SOURCES) $(DOCS) | sed s:^:cupl-$(VERS)/: >MANIFEST
+cupl-$(VERS).tar.gz: $(SOURCES) $(DOCS) cupl.1
+       @ls $(SOURCES) $(DOCS) cupl.1 | sed s:^:cupl-$(VERS)/: >MANIFEST
        @(cd ..; ln -s cupl cupl-$(VERS))
        (cd ..; tar -czvf cupl/cupl-$(VERS).tar.gz `cat cupl/MANIFEST`)
        @(cd ..; rm cupl-$(VERS))
index 525b5d0ba76e4d62325637ad9409c453813bc5cf..e87429e08db802a868bf34f037472d97cc55c15c 100644 (file)
--- a/cupl.spec
+++ b/cupl.spec
@@ -17,9 +17,10 @@ Includes full documentation and a chrestomathy of programs.
 make
 
 %install
-rm -f /usr/bin/cupl
+rm -f /usr/bin/cupl /usr/share/man/man1/cupl.1
 cp cupl /usr/bin
 
 %files
-%doc READ.ME COPYING cupl.xml corc.doc cupl.doc
+%doc READ.ME COPYING corc.doc cupl.doc
 /usr/bin/cupl
+/usr/share/man/man1/cupl.1