From: Eric S. Raymond Date: Mon, 21 Dec 1998 00:10:05 +0000 (+0000) Subject: Almost ready to ship 2.4. X-Git-Tag: 2-4~4 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=37416f5167155db58ee78e597eb0d1b5100daacc;p=bluemoon.git Almost ready to ship 2.4. --- diff --git a/Makefile b/Makefile index 5e4e9cd..472429c 100644 --- a/Makefile +++ b/Makefile @@ -1,27 +1,36 @@ # Makefile for blue, the Blue Moon solitaire game # Note: When the version changes, you also have to change -# * the name of the containing directory +# * the LSM file # * the RPM spec file -V=2.2 +V=2.4 SOURCES = READ.ME Makefile blue.c blue.c.orig blue.6 blue.lsm *.spec blue: blue.c - cc -O blue.c -lncurses -o blue + cc -O -DVERSION=\"$(V)\" blue.c -lncurses -o blue -blue.tar: $(SOURCES) - (cd ..; tar -cvf blue-$(V)/blue.tar `echo $(SOURCES) | sed "/\(^\| \)/s// blue-$(V)\//g"`) -blue.tar.gz: blue.tar - gzip -f blue.tar +blue-$(V).tar.gz: $(SOURCES) + @ls $(SOURCES) | sed s:^:blue-$(V)/: >MANIFEST + @(cd ..; ln -s blue blue-$(V)) + (cd ..; tar -czvf blue/blue-$(V).tar.gz `cat blue/MANIFEST`) + @(cd ..; rm blue-$(V)) blue.shar: $(SOURCES) shar $(SOURCES) >blue.shar clean: - rm -f blue blue.tar blue.tar.gz blue.shar *~ + rm -f blue blue.tar blue*.gz blue*.rpm blue.shar *~ + +dist: blue-$(V).tar.gz + +RPMROOT=/usr/src/redhat +RPM = rpm +RPMFLAGS = -ba +rpm: dist + cp blue-$(V).tar.gz $(RPMROOT)/SOURCES; + cp blue.spec $(RPMROOT)/SPECS + cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) blue.spec + cp $(RPMROOT)/RPMS/`arch|sed 's/i[4-9]86/i386/'`/blue-$(V)*.rpm . + cp $(RPMROOT)/SRPMS/blue-$(V)*.src.rpm . -rpm: blue.tar.gz - cp blue.tar.gz /usr/src/SOURCES/blue-$(V).tar.gz - cp blue.spec /usr/src/SPECS/blue-$(V)-1.spec - rpm -ba blue-$(V)-1.spec diff --git a/bluemoon.c b/bluemoon.c index 07b57d6..feafa8a 100644 --- a/bluemoon.c +++ b/bluemoon.c @@ -2,7 +2,6 @@ * * * B l u e M o o n * * ================= * - * V2.2b * * A patience game by T.A.Lister * * Integral screen support by Eric S. Raymond * * * @@ -169,8 +168,8 @@ int deal; clear(); (void)printw( - "Blue Moon 2.2 - by Tim Lister & Eric Raymond - Deal %d.\n", - deal); + "Blue Moon %s - by Tim Lister & Eric Raymond - Deal %d.\n", + VERSION, deal); for(row=HEARTS;row<=CLUBS;row++) { move(BASEROW + row + row + 2, 1);