]> thyrsus.com Git - galaxis.git/commitdiff
Ready to release with modern packaging.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 28 Jul 2000 20:12:19 +0000 (20:12 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 28 Jul 2000 20:12:19 +0000 (20:12 +0000)
Makefile
README

index e6f1d07e29ed5377790c2d2143939a556770e604..9478d7066c4013fbc3f3cfb964012ba40e6e9bb7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,8 @@
 #      Makefile for the galaxis game
 
 # Note: When the version changes, you also have to change
-#  * the name of the containing directory
-#  * the RPM spec file
-V=1.1
+# the RPM spec file and the LSM.
+VERS=1.2
 
 # Flags for use with the Linux ncurses package (recommended)
 CFLAGS = -g -DNDEBUG  # -I/usr/local/include -L/usr/local/lib
@@ -19,18 +18,27 @@ galaxis: galaxis.c
        $(CC) $(CFLAGS) -o galaxis galaxis.c $(TERMLIB)
 
 clean:
-       rm -f galaxis galaxis.shar *~
+       rm -f galaxis galaxis.shar galaxis-*.rpm galaxis-*.tar.gz *~
 
 SOURCES = READ.ME galaxis.c Makefile galaxis.6 galaxis.lsm galaxis.spec
 
-galaxis.shar:
-       shar $(SOURCES) >galaxis.shar
-
-galaxis.tar.gz:
-       (cd ..; tar -cvf galaxis-$(V)/galaxis.tar `echo $(SOURCES) | sed "/\(^\| \)/s// galaxis-$(V)\//g"`)
-       gzip -f galaxis.tar
-
-rpm: galaxis.tar.gz
-       cp galaxis.tar.gz /usr/src/SOURCES/galaxis-$(V).tar.gz
-       cp galaxis.spec /usr/src/SPECS/galaxis-$(V)-1.spec
-       rpm -ba galaxis-$(V)-1.spec
+galaxis-$(VERS).tar.gz: $(SOURCES)
+       @ls $(SOURCES) | sed s:^:galaxis-$(VERS)/: >MANIFEST
+       @(cd ..; ln -s galaxis galaxis-$(VERS))
+       (cd ..; tar -czvf galaxis/galaxis-$(VERS).tar.gz `cat galaxis/MANIFEST`)
+       @(cd ..; rm galaxis-$(VERS))
+
+galaxis-$(VERS).shar:
+       shar $(SOURCES) >galaxis-$(VERS).shar
+
+dist: galaxis-$(VERS).tar.gz
+
+RPMROOT=/usr/src/redhat
+RPM = rpm
+RPMFLAGS = -ba
+rpm: dist
+       cp galaxis-$(VERS).tar.gz $(RPMROOT)/SOURCES;
+       cp galaxis.spec $(RPMROOT)/SPECS
+       cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) galaxis.spec    
+       cp $(RPMROOT)/RPMS/`arch|sed 's/i[4-9]86/i386/'`/galaxis-$(VERS)*.rpm .
+       cp $(RPMROOT)/SRPMS/galaxis-$(VERS)*.src.rpm .
diff --git a/README b/README
index b1be898b0d7eb944ee2ba117e016b29c67297c88..84f9de821a79c8b68323d36ab86fe19cbf9406ab 100644 (file)
--- a/README
+++ b/README
@@ -15,4 +15,10 @@ galaxis.c    -- the game itself
 galaxis.6      -- a trivial man page
 
 Send bug reports to esr@snark.thyrsus.com.  Also, see my WWW home page
-at http://www.ccil.org/~esr/home.html for updates and other resources.
+at http://www.tuxedo.org/~esr/index.html for updates and other resources.
+
+Version 1.2: Fri Jul 28 16:05:25 EDT 2000
+       * Update to modern RPM tools.
+
+Version 1.1: Sun Oct 23 1994
+       * Initial release.