summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-10-08 20:19:26 +0000
committerjmallett <jmallett@FreeBSD.org>2002-10-08 20:19:26 +0000
commit9bfc1ff68c67f05d0a13ce3ab393ac6e3e4f5511 (patch)
treee3d280a98e13eaab0ec2b618a1ebb3b8406de052 /games
parent41b0e03e7ca538ca095d5692a6d06062d753b4f5 (diff)
downloadFreeBSD-src-9bfc1ff68c67f05d0a13ce3ab393ac6e3e4f5511.zip
FreeBSD-src-9bfc1ff68c67f05d0a13ce3ab393ac6e3e4f5511.tar.gz
Remove the wargames(6) novelty [and not the fun kind]:
1) It never was very funny. 2) It was a N line shell script where N is less than X, where X is the number of lines of the Berkeley copyright and license. 3) I rewrote it in C with the intention of making it more interactive, ala the movie, but never did. 4) Because it really is possible for at least some parts of a distribution to shrink between releases. X-No-MFC: This game will remain in RELENG_4 and previous. X-Bikesheds-To: markm@ Approved by: The #bsdcode cabal. Obtained from: Professor Falken
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/wargames/Makefile8
-rw-r--r--games/wargames/wargames.651
-rw-r--r--games/wargames/wargames.c46
4 files changed, 0 insertions, 106 deletions
diff --git a/games/Makefile b/games/Makefile
index c907bd7..e34b3ff 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -36,7 +36,6 @@ SUBDIR= adventure \
sail \
snake \
trek \
- wargames \
worm \
worms \
wump
diff --git a/games/wargames/Makefile b/games/wargames/Makefile
deleted file mode 100644
index f692921..0000000
--- a/games/wargames/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# @(#)Makefile 8.1 (Berkeley) 5/31/93
-# $FreeBSD$
-
-PROG= wargames
-LDADD= -lcurses
-MAN= wargames.6
-
-.include <bsd.prog.mk>
diff --git a/games/wargames/wargames.6 b/games/wargames/wargames.6
deleted file mode 100644
index 20c31e5..0000000
--- a/games/wargames/wargames.6
+++ /dev/null
@@ -1,51 +0,0 @@
-.\" $NetBSD: wargames.6,v 1.1 2000/01/23 21:04:56 jsm Exp $
-.\"
-.\" Copyright (c) 1998 Joey Hess
-.\" All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\" 3. The name of the author may not be used to endorse or promote products
-.\" derived from this software without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
-.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
-.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.\" $FreeBSD$
-.\"
-.Dd February 22, 1998
-.Dt WARGAMES 6
-.Os
-.Sh NAME
-.Nm wargames
-.Nd shall we play a game?
-.Sh SYNOPSIS
-.Nm
-.Sh DESCRIPTION
-.Dq Shall we play a game?\&
--- computer,
-.Nm
-.Pp
-Just like in the movie, the computer will happily play a
-game with you. The likelihood of Global Thermonuclear Warfare
-resulting is much smaller....
-.Sh SEE ALSO
-Wargames,
-the movie (an MGM production, PG-13, directed by John Badham, 1983).
-.Sh AUTHORS
-This manual page was written by Joey Hess <joeyh@kitenet.net>.
diff --git a/games/wargames/wargames.c b/games/wargames/wargames.c
deleted file mode 100644
index 4a2282e..0000000
--- a/games/wargames/wargames.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Program: wargames(6)
- * Author: Juli Mallett <jmallett@FreeBSD.org>
- * Copyright: This file is in the public domain.
- * Description:
- * Would you like to play a game? Or is the game you chose just a practice
- * in futility... Based on the original Berkeley shell script, inspired by
- * the motion picture.
- *
- * From: @(#)wargames.sh 8.1 (Berkeley) 5/31/93
- */
-
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
-#include <sys/param.h>
-#include <sys/stat.h>
-#include <ncurses.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-int
-main(void)
-{
- struct stat sb;
- char buffer[MAXPATHLEN];
- char *line;
- size_t len;
-
- printf("Would you like to play a game? ");
- line = fgetln(stdin, &len);
- if (line == NULL) {
- err(1, "I'm sorry to hear that");
- }
- line[len - 1] = '\0';
- snprintf(buffer, sizeof buffer, "/usr/games/%s", line);
- if (stat(buffer, &sb) != -1) {
- initscr();
- clear();
- endwin();
- execl(buffer, line, NULL);
- }
- printf("Funny, the only way to win is not to play at all.\n");
- return 0;
-}
OpenPOWER on IntegriCloud