]> thyrsus.com Git - bs.git/commitdiff
SGML conversion.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 10 Jul 2002 22:40:19 +0000 (22:40 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 10 Jul 2002 22:40:19 +0000 (22:40 +0000)
Makefile
bs.spec

index 1d19c7f83ab45fc9e322c5207e2bca3045669677..2c187f82f5a769162a00f2f7f6ed36dcc388adb7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 # Note: When the version changes, you also have to change
 #  * the name of the containing directory
 #  * the RPM spec file
-VERSION=2.3
+VERSION=2.4
 
 # Flags for use with the Linux ncurses package (recommended)
 TERMLIB = -lncurses
@@ -16,16 +16,20 @@ CC = gcc
 bs: bs.c
        $(CC) $(CFLAGS) -o bs bs.c $(TERMLIB)
 
-lint:
-       lint bs.c -lcurses
+bs.6:
+       docbook2man bs.sgml
 
 clean:
-       rm -f bs bs.shar bs.tar.gz *~
+       rm -f bs bs.6 bs.tar.gz *~
 
-SOURCES = READ.ME bs.c Makefile bs.6 bs.lsm bs.spec
+install: bs.6 uninstall
+       cp bs /usr/bin
+       cp bs.6 /usr/share/man/man6/bs.6
 
-bs.shar:
-       shar $(SOURCES) >bs.shar
+uninstall:
+       rm -f /usr/bin/bs /usr/share/man/man6/bs.6
+
+SOURCES = READ.ME bs.c Makefile bs.sgml bs.lsm bs.spec
 
 bs-$(VERSION).tar.gz: $(SOURCES)
        @ls $(SOURCES) | sed s:^:bs-$(VERSION)/: >MANIFEST
diff --git a/bs.spec b/bs.spec
index 8567a7044c074774bf6fd0e08d1be616e2b450a9..5be7b00a7639363ba9d9f04725f6663d7d88669a 100644 (file)
--- a/bs.spec
+++ b/bs.spec
@@ -1,8 +1,8 @@
 Name: bs
 Summary: Battleships against the computer (character-cell graphics)
-Version: 2.3
+Version: 2.4
 Release: 1
-Source: locke.ccil.org:/pub/esr/bs-2.3.tar.gz
+Source: locke.ccil.org:/pub/esr/bs-2.4.tar.gz
 Copyright: BSD-like
 Group: Games
 %description
@@ -17,9 +17,7 @@ If you're using an xterm under Linux the mouse will work.
 make
 
 %install
-rm -f /usr/bin/bs
-cp bs /usr/bin
-cp bs.6 /usr/share/man/man6/bs.6
+make install
 
 %files
 /usr/share/man/man6/bs.6