Lift repository from RCS to git.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 13 Oct 2010 00:43:54 +0000 (20:43 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 13 Oct 2010 00:43:54 +0000 (20:43 -0400)
Also, delete some obsolete shipper machinery.

.gitignore [new file with mode: 0644]
Makefile [new file with mode: 0644]
wumpus.xml [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..702512b
--- /dev/null
@@ -0,0 +1,5 @@
+wumpus
+superhack
+*.o
+*.1
+*.6
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..f75090c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,40 @@
+#
+# Makefile for `Hunt the Wumpus' and `Superhack' games
+#
+VERS=$(shell sed <wumpus.spec -n -e '/Version: \(.*\)/s//\1/p')
+
+all: wumpus superhack
+
+wumpus: wumpus.c
+       $(CC) $(CFLAGS) wumpus.c -o wumpus
+
+superhack: superhack.c
+       $(CC) $(CFLAGS) superhack.c -o superhack
+
+clean:
+       rm -f wumpus wumpus.o superhack superhack.o TAGS
+
+TAGS:
+       etags wumpus.c
+
+wumpus.6: wumpus.xml
+       xmlto man wumpus.xml 
+
+SOURCES = README Makefile wumpus.c superhack.c wumpus.xml wumpus.spec
+
+install: wumpus.6
+       cp wumpus superhack /usr/bin/
+       cp wumpus.6 /usr/share/man/man6/
+
+uninstall:
+       rm /usr/bin/wumpus /usr/bin/superhack
+       rm /usr/share/man/man6/wumpus.6
+
+wumpus-$(VERS).tar.gz: $(SOURCES) wumpus.6
+       @ls $(SOURCES) wumpus.6 | sed s:^:wumpus-$(VERS)/: >MANIFEST
+       @(cd ..; ln -s wumpus wumpus-$(VERS))
+       (cd ..; tar -czvf wumpus/wumpus-$(VERS).tar.gz `cat wumpus/MANIFEST`)
+       @(cd ..; rm wumpus-$(VERS))
+
+dist: wumpus-$(VERS).tar.gz
+
diff --git a/wumpus.xml b/wumpus.xml
new file mode 100644 (file)
index 0000000..fbfbfd7
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE refentry PUBLIC 
+   "-//OASIS//DTD DocBook XML V4.1.2//EN"
+   "docbook/docbookx.dtd">
+<refentry id='wumpus.6'>
+<refmeta>
+<refentrytitle>wumpus</refentrytitle>
+<manvolnum>6</manvolnum>
+<refmiscinfo class='date'>Sep 7 1992</refmiscinfo>
+</refmeta>
+<refnamediv id='name'>
+<refname>wumpus</refname>
+<refpurpose>the classic game of Hunt the Wumpus</refpurpose>
+</refnamediv>
+<refsynopsisdiv id='synopsis'>
+
+<cmdsynopsis>
+  <command>wumpus</command>
+</cmdsynopsis>
+<cmdsynopsis>
+  <command>superhack</command>
+</cmdsynopsis>
+
+</refsynopsisdiv>
+
+<refsect1 id='description'><title>DESCRIPTION</title>
+
+<para><application>wumpus</application> is a faithful transcription of
+the 1974 game WUMPUS for the Atari, the first computer game to
+maintain a consistent external map.  An article on the history of this
+classic game can be found <ulink
+url='http://www.atariarchives.org/bcc1/showpage.php?page=247'>here</ulink>.</para>
+
+<para><application>superhack</application> is a structurally similar
+game with a different premise.</para>
+</refsect1>
+
+<refsect1 id='authors'><title>AUTHORS</title>
+<para>The original Atari game was designed and written by Gregory Yob.
+This version was cloned from the original BASIC sources by Eric
+S. Raymond <email>esr@snark.thyrsus.com</email>.  See ESR's home page at
+<ulink
+url='http://www.catb.org/~esr/'>http://www.catb.org/~esr/</ulink>
+for updates and other resources.</para>
+</refsect1>
+</refentry>
+