From: Eric S. Raymond Date: Thu, 11 Jul 2002 17:22:47 +0000 (+0000) Subject: SGML conversion. X-Git-Tag: 1.3~5 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=08ae65cb4b48a659e1eec2fd790ff510e97f3eab;p=hexdump.git SGML conversion. --- diff --git a/Makefile b/Makefile index 9b5c4ad..218dddb 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ VERS=1.2 hex: hex.c $(CC) -DVERSION=\"$(VERS)\" -O hex.c -o hex -SOURCES = READ.ME Makefile hex.c hex.1 hex.lsm hex.spec +SOURCES = READ.ME Makefile hex.c hex.sgml hex.1 hex.lsm hex.spec hex-$(VERS).tar.gz: @ls $(SRC) | sed s:^:hex-$(VERS)/: >MANIFEST @@ -14,6 +14,17 @@ hex-$(VERS).tar.gz: (cd ..; tar -czvf hex/hex-$(VERS).tar.gz `cat hex/MANIFEST`) @(cd ..; rm hex-$(VERS)) +hex.1: hex.sgml + docbook2man hex.sgml + +install: hex.1 uninstall + cp hex /usr/bin + cp hex.1 /usr/share/man/man1/hex.1 + +uninstall: + rm -f /usr/bin/hex /usr/share/man/man1/hex. + rm -f hex.1 manpage.links manpage.refs + clean: rm -f hex hex-$(VERS).tar.gz *.rpm diff --git a/hexdump.spec b/hexdump.spec index 2950792..6543212 100644 --- a/hexdump.spec +++ b/hexdump.spec @@ -16,10 +16,8 @@ Hex dumper that does CP/M format and EBCDIC; has internationalization. make %install -rm -f /usr/bin/hex -cp hex /usr/bin -cp hex.1 /usr/man/man1/hex.1 +make install %files -/usr/man/man1/hex.1 +/usr/share/man/man1/hex.1 /usr/bin/hex