From 3d0966ab01c45b20022e753198cb5fbc832ba3e6 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 10 Jul 2002 22:51:47 +0000 Subject: [PATCH] SGML conversion. --- Makefile | 17 ++++++++++++----- cstrings.spec | 8 +++----- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index f8a3c14..1139808 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # Note: When the version changes, you also have to change # the RPM spec file and the lsm. -VERS=2.1 +VERS=2.2 CFLAGS=-O LDFLAGS=-s @@ -16,8 +16,18 @@ cstrings: cstrings.l mv lex.yy.c cstrings.c $(CC) $(CFLAGS) cstrings.c $(LDFLAGS) -o cstrings +cstrings.1: cstrings.sgml + docbook2man cstrings.sgml + +install: cstrings.1 uninstall + cp cstrings /usr/bin + cp cstrings.1 /usr/share/man/man1/cstrings.1 + +uninstall: + rm -f /usr/bin/cstrings /usr/share/man/man1/cstrings.1 + clean: - rm -f lex.yy.c cstrings cstrings.c *~ cstrings.shar cstrings.tar.gz + rm -f lex.yy.c cstrings cstrings.1 cstrings.c *~ cstrings.tar.gz rm -f *.rpm cstrings-*.tar.gz SOURCES = READ.ME cstrings.1 Makefile cstrings.l cstrings.lsm cstrings.spec @@ -28,9 +38,6 @@ cstrings-$(VERS).tar.gz: $(SOURCES) (cd ..; tar -czvf cstrings/cstrings-$(VERS).tar.gz `cat cstrings/MANIFEST`) @(cd ..; rm cstrings-$(VERS)) -cstrings-$(VERS).shar: - shar $(SOURCES) >cstrings-$(VERS).shar - dist: cstrings-$(VERS).tar.gz RPMROOT=/usr/src/redhat diff --git a/cstrings.spec b/cstrings.spec index 1fd639c..ab500f5 100644 --- a/cstrings.spec +++ b/cstrings.spec @@ -1,7 +1,7 @@ Name: cstrings -Version: 2.1 +Version: 2.2 Release: 1 -Source: locke.ccil.org:/pub/esr/cstrings-2.1.tar.gz +Source: locke.ccil.org:/pub/esr/cstrings-2.2.tar.gz Copyright: BSD-like Group: Development/Tools Summary: quick-and-dirty C code internationalization tool @@ -16,9 +16,7 @@ Quick-and-dirty C code internationalization tool. make %install -rm -f /usr/bin/cstrings -cp cstrings /usr/bin -cp cstrings.1 /usr/man/man1/cstrings.1 +make install %files /usr/man/man1/cstrings.1 -- 2.43.0