From e38417cf291ac23e9de46b0376e42747d1d39582 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 3 Nov 2004 13:28:53 +0000 Subject: [PATCH] Install/uninstall are in place. --- TODO | 2 -- makefile | 41 +++++++++++++++++++++++++++++++++++++---- sst.xml | 6 ++++-- 3 files changed, 41 insertions(+), 8 deletions(-) diff --git a/TODO b/TODO index 8aff8a8..aacd814 100644 --- a/TODO +++ b/TODO @@ -3,8 +3,6 @@ * Yes-no confirmations and "press-to-continue" situations should print a recognizable standard prompt. -* A real release, with downloadable tarballs and RPMs and so forth. - * The time machine switch. Specify a year, get only the features that then existed. (This would be partly so people can try the original non-"super" version Matuszek and Reynolds wrote.) diff --git a/makefile b/makefile index e03770f..be24e45 100644 --- a/makefile +++ b/makefile @@ -1,13 +1,19 @@ -CFLAGS= -O -g -DSSTDOC='"sst.doc"' +# Makefile for the Super Star Trek game + +VERS=$(shell sed sst.doc +sst-doc.html: sst-doc.xml + xmlto --skip-validation xhhtml-nochunks sst-doc.xml + +install: sst.6 uninstall + install -m 755 -o 0 -g 0 -d $(ROOT)/usr/bin/ + install -m 755 -o 0 -g 0 sst $(ROOT)/usr/bin/sst + install -m 755 -o 0 -g 0 -d $(ROOT)/usr/share/man/man6/ + install -m 755 -o 0 -g 0 sst.6 $(ROOT)/usr/share/man/man6/sst.6 + mkdir -p /usr/share/doc/sst/ + install -m 644 -o 0 -g 0 sst.doc $(ROOT)/usr/share/doc/sst/ + install -m 644 -o 0 -g 0 sst-doc.html $(ROOT)/usr/share/doc/sst/index.html + +uninstall: + rm -f ${ROOT}/usr/bin/sst ${ROOT}/usr/share/man/man6/sst.6 + rm -fr ${ROOT}/usr/share/doc/sst/ + clean: - rm -f *.o sst sst-doc.txt sst.doc + rm -f *.o sst sst-doc.html sst-doc.txt sst.doc + +# The "trunk" below assumes this is a Subversion working copy +sst-$(VERS).tar.gz: $(SOURCES) sst.6 + ls $(SOURCES) sst.6 | sed s:^:sst-$(VERS)/: >MANIFEST + (cd ..; ln -s trunk sst-$(VERS)) + (cd ..; tar -czvf trunk/sst-$(VERS).tar.gz `cat trunk/MANIFEST`) + (cd ..; rm sst-$(VERS)) + +dist: sst-$(VERS).tar.gz +release: sst-$(VERS).tar.gz sst.html + shipper -f; rm -f CHANGES ANNOUNCE* *.6 *.html *.rpm *.lsm MANIFEST diff --git a/sst.xml b/sst.xml index 608b323..abef525 100644 --- a/sst.xml +++ b/sst.xml @@ -32,14 +32,16 @@ invasion fleet and make the galaxy safe for democracy. sst in a terminal window to start it. Typing 'comands' at the prompt will list all commands; help is available for each one individually as well. Full documentation is browseable. +url='http://sst.berlios.de/sst-doc.html'>browseable. On +systems where /usr/share/doc/sst/ is a legal +filename, it will probably be installed there as well. AUTHORS Super Star Trek was designed and written by David Matuszek, Paul Reynolds, and Don Smith in the 1970s. It was resurrected by Tom Almy. This version has been cleaned up and documented by Eric S. Raymond -<esr@snark.thyrsus.com>. There is a esr@snark.thyrsus.com. There is a project page. -- 2.31.1