Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/warp Add Warp Kit, Version 7.0 by Larry Wall
details: https://anonhg.NetBSD.org/src/rev/bd51356d50f6
branches: trunk
changeset: 1016165:bd51356d50f6
user: kamil <kamil%NetBSD.org@localhost>
date: Mon Nov 09 23:37:05 2020 +0000
description:
Add Warp Kit, Version 7.0 by Larry Wall
Warp is a real-time space war game that doesn't get boring very quickly.
Read warp.doc and the manual page for more information.
games/warp originally distributed with 4.3BSD-Reno, is back to the BSD
world via NetBSD. Its remnants were still mentioned in games/Makefile.
Larry Wall, the original author and the copyright holder, generously
donated the game and copyright to The NetBSD Foundation, Inc.
Import the game sources as-is from 4.3BSD-Reno, with the cession
of the copyright and license to BSD-2-clause NetBSD-style.
Signed-off-by: Larry Wall <larry%wall.org@localhost>
Signed-off-by: Kamil Rytarowski <kamil%netbsd.org@localhost>
diffstat:
games/warp/COPYRIGHT | 26 +
games/warp/EXTERN.h | 42 ++
games/warp/INTERN.h | 40 ++
games/warp/Makefile | 61 +++
games/warp/README | 116 ++++++
games/warp/bang.c | 171 +++++++++
games/warp/bang.h | 48 ++
games/warp/config.H | 92 +++++
games/warp/config.h | 149 ++++++++
games/warp/config.h.SH | 269 +++++++++++++++
games/warp/config.sh | 128 +++++++
games/warp/filexp | 32 +
games/warp/init.c | 570 ++++++++++++++++++++++++++++++++
games/warp/init.h | 27 +
games/warp/intrp.c | 590 ++++++++++++++++++++++++++++++++++
games/warp/intrp.h | 41 ++
games/warp/move.c | 698 ++++++++++++++++++++++++++++++++++++++++
games/warp/move.h | 32 +
games/warp/object.c | 100 +++++
games/warp/object.h | 89 +++++
games/warp/patchlevel.h | 1 +
games/warp/play.c | 198 +++++++++++
games/warp/play.h | 31 +
games/warp/score.c | 727 +++++++++++++++++++++++++++++++++++++++++
games/warp/score.h | 67 +++
games/warp/sig.c | 243 ++++++++++++++
games/warp/sig.h | 34 +
games/warp/sm.c | 99 +++++
games/warp/smap.0 | 621 +++++++++++++++++++++++++++++++++++
games/warp/smap.1 | 621 +++++++++++++++++++++++++++++++++++
games/warp/smap.2 | 343 +++++++++++++++++++
games/warp/smap.3 | 85 ++++
games/warp/smap.4 | 577 +++++++++++++++++++++++++++++++++
games/warp/smap.5 | 17 +
games/warp/smap.6 | 744 ++++++++++++++++++++++++++++++++++++++++++
games/warp/smap.7 | 178 ++++++++++
games/warp/smp.0 | 23 +
games/warp/smp.1 | 23 +
games/warp/smp.2 | 23 +
games/warp/smp.3 | 23 +
games/warp/smp.4 | 23 +
games/warp/smp.5 | 23 +
games/warp/smp.6 | 23 +
games/warp/smp.7 | 23 +
games/warp/term.c | 832 ++++++++++++++++++++++++++++++++++++++++++++++++
games/warp/term.h | 327 ++++++++++++++++++
games/warp/them.c | 424 ++++++++++++++++++++++++
games/warp/them.h | 29 +
games/warp/us.c | 528 ++++++++++++++++++++++++++++++
games/warp/us.h | 79 ++++
games/warp/util.c | 344 +++++++++++++++++++
games/warp/util.h | 102 +++++
games/warp/version.c | 39 ++
games/warp/version.h | 27 +
games/warp/warp.c | 424 ++++++++++++++++++++++++
games/warp/warp.doc | 193 +++++++++++
games/warp/warp.h | 463 ++++++++++++++++++++++++++
games/warp/warp.man | 133 +++++++
games/warp/warp.news | 4 +
games/warp/weapon.c | 706 ++++++++++++++++++++++++++++++++++++++++
games/warp/weapon.h | 40 ++
61 files changed, 12785 insertions(+), 0 deletions(-)
diffs (truncated from 13029 to 300 lines):
diff -r 4c099f3a71ec -r bd51356d50f6 games/warp/COPYRIGHT
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/warp/COPYRIGHT Mon Nov 09 23:37:05 2020 +0000
@@ -0,0 +1,26 @@
+Copyright (c) 2020 The NetBSD Foundation, Inc.
+All rights reserved.
+
+This code is derived from software contributed to The NetBSD Foundation
+by Larry Wall.
+
+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.
+
+THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+``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 FOUNDATION OR CONTRIBUTORS
+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.
diff -r 4c099f3a71ec -r bd51356d50f6 games/warp/EXTERN.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/warp/EXTERN.h Mon Nov 09 23:37:05 2020 +0000
@@ -0,0 +1,42 @@
+/* $Header: /cvsroot/src/games/warp/EXTERN.h,v 1.1 2020/11/09 23:37:05 kamil Exp $
+ *
+ * $Log: EXTERN.h,v $
+ * Revision 1.1 2020/11/09 23:37:05 kamil
+ * Add Warp Kit, Version 7.0 by Larry Wall
+ *
+ * Warp is a real-time space war game that doesn't get boring very quickly.
+ * Read warp.doc and the manual page for more information.
+ *
+ * games/warp originally distributed with 4.3BSD-Reno, is back to the BSD
+ * world via NetBSD. Its remnants were still mentioned in games/Makefile.
+ *
+ * Larry Wall, the original author and the copyright holder, generously
+ * donated the game and copyright to The NetBSD Foundation, Inc.
+ *
+ * Import the game sources as-is from 4.3BSD-Reno, with the cession
+ * of the copyright and license to BSD-2-clause NetBSD-style.
+ *
+ * Signed-off-by: Larry Wall <larry%wall.org@localhost>
+ * Signed-off-by: Kamil Rytarowski <kamil%netbsd.org@localhost>
+ *
+ * Revision 7.0.1.1 86/12/12 16:46:50 lwall
+ * Guarded the undefs.
+ *
+ * Revision 7.0 86/10/08 15:11:31 lwall
+ * Split into separate files. Added amoebas and pirates.
+ *
+ */
+
+#ifdef EXT
+#undef EXT
+#endif
+#define EXT extern
+
+#ifdef INIT
+#undef INIT
+#endif
+#define INIT(x)
+
+#ifdef DOINIT
+#undef DOINIT
+#endif
diff -r 4c099f3a71ec -r bd51356d50f6 games/warp/INTERN.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/warp/INTERN.h Mon Nov 09 23:37:05 2020 +0000
@@ -0,0 +1,40 @@
+/* $Header: /cvsroot/src/games/warp/INTERN.h,v 1.1 2020/11/09 23:37:05 kamil Exp $
+ *
+ * $Log: INTERN.h,v $
+ * Revision 1.1 2020/11/09 23:37:05 kamil
+ * Add Warp Kit, Version 7.0 by Larry Wall
+ *
+ * Warp is a real-time space war game that doesn't get boring very quickly.
+ * Read warp.doc and the manual page for more information.
+ *
+ * games/warp originally distributed with 4.3BSD-Reno, is back to the BSD
+ * world via NetBSD. Its remnants were still mentioned in games/Makefile.
+ *
+ * Larry Wall, the original author and the copyright holder, generously
+ * donated the game and copyright to The NetBSD Foundation, Inc.
+ *
+ * Import the game sources as-is from 4.3BSD-Reno, with the cession
+ * of the copyright and license to BSD-2-clause NetBSD-style.
+ *
+ * Signed-off-by: Larry Wall <larry%wall.org@localhost>
+ * Signed-off-by: Kamil Rytarowski <kamil%netbsd.org@localhost>
+ *
+ * Revision 7.0.1.1 86/12/12 16:51:45 lwall
+ * Guarded the undefs.
+ *
+ * Revision 7.0 86/10/08 15:11:37 lwall
+ * Split into separate files. Added amoebas and pirates.
+ *
+ */
+
+#ifdef EXT
+#undef EXT
+#endif
+#define EXT
+
+#ifdef INIT
+#undef INIT
+#endif
+#define INIT(x) = x
+
+#define DOINIT
diff -r 4c099f3a71ec -r bd51356d50f6 games/warp/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/warp/Makefile Mon Nov 09 23:37:05 2020 +0000
@@ -0,0 +1,61 @@
+CFLAGS+=-O
+SRCS= bang.c init.c intrp.c move.c object.c play.c score.c sig.c term.c \
+ them.c us.c util.c version.c warp.c weapon.c
+OBJS= bang.o init.o intrp.o move.o object.o play.o score.o sig.o term.o \
+ them.o us.o util.o version.o warp.o weapon.o
+
+warp: ${OBJS}
+ ${CC} ${OBJS} -o $@ -ltermlib -lm
+
+install: warp
+ export PATH || exit 1
+ - mv $(bin)/warp $(bin)/warp.old
+ - if test `pwd` != $(bin); then cp $(public) $(bin); fi
+ - cd $(bin); chmod 755 $(public); chown '$(CHOWNER)' $(public)
+ - chmod 4711 $(bin)/warp
+ - chmod 755 makedir
+ - ./makedir `./filexp $(privlib)`
+ - \
+if test `pwd` != `./filexp $(privlib)`; then \
+cp $(private) `./filexp $(privlib)`; \
+fi
+ - \
+cd `./filexp $(privlib)`; \
+chmod 755 $(private); \
+chown '$(CHOWNER)' . $(private); \
+cp /dev/null save.blurfl
+ - \
+if test ! -f `./filexp $(privlib)/warp.news`; then \
+cp warp.news `./filexp $(privlib)`; \
+fi
+ - \
+if test `pwd` != $(mansrc); then \
+for page in $(manpages); do \
+cp $$page $(mansrc)/`basename $$page .man`.$(manext); \
+done; \
+fi
+
+clean:
+ rm -f warp core ${OBJS}
+
+smap.0: smp.0 sm
+ sm <smp.0 >smap.0
+smap.1: smp.1 sm
+ sm <smp.1 >smap.1
+smap.2: smp.2 sm
+ sm <smp.2 >smap.2
+smap.3: smp.3 sm
+ sm <smp.3 >smap.3
+smap.4: smp.4 sm
+ sm <smp.4 >smap.4
+smap.5: smp.5 sm
+ sm <smp.5 >smap.5
+smap.6: smp.6 sm
+ sm <smp.6 >smap.6
+smap.7: smp.7 sm
+ sm <smp.7 >smap.7
+sm: sm.c
+ ${CC} sm.c -o $@
+
+depend: ${SRCS}
+ mkdep ${SRCS}
diff -r 4c099f3a71ec -r bd51356d50f6 games/warp/README
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/warp/README Mon Nov 09 23:37:05 2020 +0000
@@ -0,0 +1,116 @@
+Copyright (c) 2020 The NetBSD Foundation, Inc.
+All rights reserved.
+
+This code is derived from software contributed to The NetBSD Foundation
+by Larry Wall.
+
+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.
+
+THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+``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 FOUNDATION OR CONTRIBUTORS
+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.
+
+--------------------------------------------------------------------------
+
+Warp is a real-time space war game that doesn't get boring very quickly.
+Read warp.doc and the manual page for more information.
+
+Warp will probably not run on V7 systems that don't have a non-blocking read,
+or on machines with a small address space like the PDP-11. Caveat Emptor.
+
+Please read all the directions below before you proceed any further, and
+then follow them carefully. Failure to do so may void your warranty. :-)
+
+After you have unpacked your kit, you should have all the files listed
+in MANIFEST.
+
+ IMPORTANT
+
+You must choose the uid that you want warp to run under, since warp runs
+setuid to protect its files. Choose a uid (not root) that is used only
+by trustworthy persons. If you do your make install as root, the installed
+version will be chowned to this uid. Otherwise, you should login to your
+selected uid before proceeding. The Configure script will ask you which
+uid you want warp to run under.
+
+Installation
+
+1) Run Configure. This will figure out various things about your system.
+ Some things Configure will figure out for itself, other things it will
+ ask you about. It will then proceed to make config.h, config.sh, and
+ Makefile.
+
+ You might possibly have to trim # comments from the front of Configure
+ if your sh doesn't handle them, but all other # comments will be taken
+ care of.
+
+ (If you don't have sh, you'll have to copy the sample file config.H to
+ config.h and edit the config.h to reflect your system's peculiarities.)
+
+2) Glance through config.h to make sure system dependencies are correct.
+ Most of them should have been taken care of by running the Configure script.
+
+ If you have any additional changes to make to the C definitions, they
+ can be done in the Makefile, or in config.h. Bear in mind that they will
+ get undone next time you run Configure.
+
+3) make depend
+
+ This will look for all the includes and modify Makefile accordingly.
+ Configure will offer to do this for you.
+
+4) make
+
+ This will attempt to make warp in the current directory.
+
+5) make install
+
+ This will put warp into a public directory (normally /usr/games).
+ It will also try to put the man pages in a reasonable place. It will not
+ nroff the man page, however. You may need to be root to do this. If
+ you are not root, you must own the directories in question and you should
+ ignore any messages about chown not working.
+
+6) Read the manual entry before running warp.
+
+7) Feel free to edit warp.news.
+
+8) IMPORTANT! Help save the world! Communicate any problems and
+ suggested patches to me, lwall%sdcrdcf.UUCP@localhost (Larry Wall), so we can
+ keep the world in sync. If you have a problem, there's someone else
+ out there who either has had or will have the same problem.
+
+ If possible, send in patches such that the patch program will apply them.
+ Context diffs are the best, then normal diffs. Don't send ed scripts--
+ I've probably changed my copy since the version you have.
+
+ Watch for warp patches in comp.sources.bugs. Patches will generally be
+ in a form usable by the patch program. If you are just now bringing up
+ warp and aren't sure how many patches there are, write to me and I'll
+ send any you don't have. Your current patch level is shown in patchlevel.h.
+
+
+NEW FEATURES IN THIS RELEASE
+
+Uses a Configure script for greater portability.
+Space Amoebas!!!
Home |
Main Index |
Thread Index |
Old Index