From: Eric S. Raymond Date: Mon, 3 Dec 2012 12:30:52 +0000 (-0500) Subject: Packaging fixups, icon, history update, and one line of cppcheck cleanup. X-Git-Tag: 2.9~2 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=a65f208c91fcc1ea54931a0be36eae4f2acc651b;p=bs.git Packaging fixups, icon, history update, and one line of cppcheck cleanup. --- diff --git a/Makefile b/Makefile index 412c766..a266c9d 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Makefile for bs, the Battleships game -VERSION=$(shell sed MANIFEST diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..c59ab86 --- /dev/null +++ b/NEWS @@ -0,0 +1,24 @@ + bs project news + +2.9 @ 2012-12-01 + Packaging fixes. Added icon. cppcheck cleanup. + +2.8 @ 2010-10-19 + Port to modern C. + +2.7 @ 2003-12-29 + Source RPMS no longer depend on --define myversion. + +2.6 @ 2003-12-26 + Fix a broken URL in the documentation + +2.5 @ 2003-12-24 + Improved packaging. + + * v2.4 Update the RPM production. + * v2.3 bug fixes by Erik Sigra. + * v2.2 code cleanup. + * v2.1 with ncurses mouse support, September 1995 + * v2.0 featuring strict ANSI/POSIX conformance, November 1993. + * v1.2 with color support and minor portability fixes, November 1990 + diff --git a/README b/README index f21ebbd..8e908fe 100644 --- a/README +++ b/README @@ -33,6 +33,14 @@ O.K., I feel better now that I've got that off my chest... November 1993: I've added function key support, and ANSI/POSIXized the code. +December 2012: This is ancient code now, mainly interesting as a +historical document of what primitive computer games looked like in +the 1980s - the earliest commit is in the repo is from 1993, the +oldest news item is from 1990, but I think I rewrote it sometime +between 1987 and 1989. The PNG icon in the distribution is much +later; thanks to Tor Gjerde who seems to have built it for use with +FVWM. + Eric S. Raymond esr@snark.thyrsus.com (WWW: http://www.catb.org/~esr/) diff --git a/battleship.png b/battleship.png new file mode 100644 index 0000000..b05f953 Binary files /dev/null and b/battleship.png differ diff --git a/bs.c b/bs.c index 07bc2d5..995ae0d 100644 --- a/bs.c +++ b/bs.c @@ -1154,10 +1154,11 @@ int playagain(void) static void do_options(int c, char *op[]) { - register int i; if (c > 1) { + register int i; + for (i=1; i 2.8-1 -- Port to modern C. - -* Mon Dec 29 2003 Eric S. Raymond 2.7-1 -- Source RPMS no longer depend on --define myversion. - -* Fri Dec 26 2003 Eric S. Raymond 2.6-1 -- Fix a broken URL in the documentation - -* Wed Dec 24 2003 Eric S. Raymond 2.5-1 -- Improved packaging. - - * v1.2 with color support and minor portability fixes, November 1990 - * v2.0 featuring strict ANSI/POSIX conformance, November 1993. - * v2.1 with ncurses mouse support, September 1995 - * v2.2 code cleanup. - * v2.3 bug fixes by Erik Sigra. - * v2.4 Update the RPM production. diff --git a/control b/control new file mode 100644 index 0000000..701b1f4 --- /dev/null +++ b/control @@ -0,0 +1,16 @@ +# This is not a real Debian control file +# It's project metadata for the shipper tool + +Package: bs + +Description: The classic game of Battleships against the computer. + Uses character-cell graphics with a visual point-and-shoot interface. + If you're using an xterm under Linux the mouse will work. + +XBS-Destinations: freecode + +XBS-Logo: battleship.png + +Homepage: http://www.catb.org/~esr/bs + +XBS-Project-Tag-List: Games/Entertainment