From a65f208c91fcc1ea54931a0be36eae4f2acc651b Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 3 Dec 2012 07:30:52 -0500 Subject: [PATCH] Packaging fixups, icon, history update, and one line of cppcheck cleanup. --- Makefile | 7 ++++-- NEWS | 24 +++++++++++++++++++++ README | 8 +++++++ battleship.png | Bin 0 -> 341 bytes bs.c | 3 ++- bs.spec | 57 ------------------------------------------------- control | 16 ++++++++++++++ 7 files changed, 55 insertions(+), 60 deletions(-) create mode 100644 NEWS create mode 100644 battleship.png delete mode 100644 bs.spec create mode 100644 control 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 0000000000000000000000000000000000000000..b05f953828e51e999d83f486fcb8e9620a9498fb GIT binary patch literal 341 zcmeAS@N?(olHy`uVBq!ia0vp^@<6P>!2%>5y0cFKDW)WEcNd2L?fqx=19_YU9+AaB z+5?Q;PG;Ky8Ph#o978NlZw>VnYB1p7u2t!OqyF*1ivahVOXO}jb1F`WIPmX?-7NmfgH$)#+AO9;!6a@1yW#oBJkaj$d!LZChMwTGr`i z{yVlPOp#TGBkt-GA1`eiX0^SN2a2ElRPH>zFUoD{!feCtx^kKOZ~Br>Z|DiEZ<1Kh zwo?1!=3U=!+0SiYuJ=<=YM3zl4A6?)FK#IZ0z|cq+hzyKF49u+z rOsz}}bb+LSK^*`2SQHJp`6-!cmAEzN2bDhrYGCkm^>bP0l+XkK1rm1B literal 0 HcmV?d00001 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 -- 2.43.0