]> thyrsus.com Git - cstrings.git/commitdiff
Ready to ship 2.1.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 28 Jul 2000 03:42:50 +0000 (03:42 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 28 Jul 2000 03:42:50 +0000 (03:42 +0000)
Makefile
cstrings.spec

index 69d361d29ce5f63bd5abdc9a4f5f1c2282c6d311..f8a3c14758e9afbb617b6814f311f3dc59711bee 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,8 @@
 # Makefile for the cstrings tool by Eric S. Raymond
 
 # Note: When the version changes, you also have to change
-#  * the name of the containing directory
-#  * the RPM spec file
-V=2.0
+# the RPM spec file and the lsm.
+VERS=2.1
 
 CFLAGS=-O
 LDFLAGS=-s
@@ -19,18 +18,27 @@ cstrings: cstrings.l
 
 clean:
        rm -f lex.yy.c cstrings cstrings.c *~ cstrings.shar cstrings.tar.gz
-
-SOURCES= cstrings.1 Makefile cstrings.l cstrings.lsm cstrings.spec
-
-cstrings.tar: $(SOURCES)
-       (cd ..; tar -cvf cstrings-$(V)/cstrings.tar `echo $(SOURCES) | sed "/\(^\| \)/s// cstrings-$(V)\//g"`)
-cstrings.tar.gz: cstrings.tar
-       gzip -f cstrings.tar
-
-cstrings.shar: $(SOURCES)
-       shar $(SOURCES) >cstrings.shar
-
-rpm: cstrings.tar.gz
-       cp cstrings.tar.gz /usr/src/SOURCES/cstrings-$(V).tar.gz
-       cp cstrings.spec /usr/src/SPECS/cstrings-$(V)-1.spec
-       rpm -ba cstrings-$(V)-1.spec
+       rm -f *.rpm cstrings-*.tar.gz
+
+SOURCES = READ.ME cstrings.1 Makefile cstrings.l cstrings.lsm cstrings.spec
+
+cstrings-$(VERS).tar.gz: $(SOURCES)
+       @ls $(SOURCES) | sed s:^:cstrings-$(VERS)/: >MANIFEST
+       @(cd ..; ln -s cstrings cstrings-$(VERS))
+       (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
+RPM = rpm
+RPMFLAGS = -ba
+rpm: dist
+       cp cstrings-$(VERS).tar.gz $(RPMROOT)/SOURCES;
+       cp cstrings.spec $(RPMROOT)/SPECS
+       cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) cstrings.spec   
+       cp $(RPMROOT)/RPMS/`arch|sed 's/i[4-9]86/i386/'`/cstrings-$(VERS)*.rpm .
+       cp $(RPMROOT)/SRPMS/cstrings-$(VERS)*.src.rpm .
index 6ba90b650d256f2924f82408bb1f2c7de70321b4..66ffa1132a82f79b6c9a35611c336a00488dbd98 100644 (file)
@@ -1,10 +1,13 @@
-Description: quick-and-dirty C code internationalization tool
 Name: cstrings 
-Version: 2.0
+Version: 2.1
 Release: 1
-Source: locke.ccil.org:/pub/esr/cstrings-2.0.tar.gz
+Source: locke.ccil.org:/pub/esr/cstrings-2.1.tar.gz
 Copyright: BSD-like
 Group: Development/Tools
+Summary: quick-and-dirty C code internationalization tool
+
+$description:
+Quick-and-dirty C code internationalization tool.
 
 %prep
 %setup