tManpage added; ChangeLog updated - vaccinewars - be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars
Log
Files
Refs
README
LICENSE
---
commit 701191c1fca5dbb19f0ae63b58bcc3c52de2aed2
parent 8ed72ee7b639ea7aa0b6d9b5383566e4c076ae37
Author: Ben Webb 
Date:   Wed, 25 Apr 2001 12:36:32 +0000

Manpage added; ChangeLog updated


Diffstat:
  M ChangeLog                           |       3 +++
  M doc/Makefile.am                     |       2 ++
  M doc/Makefile.in                     |      65 ++++++++++++++++++++++++++-----
  A doc/dopewars.6                      |      57 +++++++++++++++++++++++++++++++
  M dopewars.spec                       |       1 +

5 files changed, 119 insertions(+), 9 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
t@@ -1,4 +1,7 @@
 cvs
+    - Manpage (courtesy of Leon Breedt) added in doc/
+    - Fix for missing "bgetch" when configured with --disable-curses-client
+    - Broken "trenchcoat" message fixed
     - Value of bought drugs now displayed in curses client
     - AI players now are at least partially functional
     - Fix for server segfault on invalid short network messages
diff --git a/doc/Makefile.am b/doc/Makefile.am
t@@ -3,6 +3,8 @@ DOCS= aiplayer.html configfile.html index.html i18n.html server.html \
       clientplay.html credits.html installation.html \
       servercommands.html commandline.html developer.html \
       metaserver.html windows.html
+man_MANS = dopewars.6
+EXTRA_DIST = ${man_MANS}
 
 install-data-local:
         ${INSTALL} -d -o root -g root -m 0755 ${DESTDIR}${DOCPATH}
diff --git a/doc/Makefile.in b/doc/Makefile.in
t@@ -90,9 +90,15 @@ localedir = @localedir@
 DOCPATH = ${datadir}/doc/${PACKAGE}-${VERSION}/
 DOCS = aiplayer.html configfile.html index.html i18n.html server.html       clientplay.html credits.html installation.html       servercommands.html commandline.html developer.html       metaserver.html windows.html
 
+man_MANS = dopewars.6
+EXTRA_DIST = ${man_MANS}
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_HEADER = ../config.h
 CONFIG_CLEAN_FILES = 
+man6dir = $(mandir)/man6
+MANS = $(man_MANS)
+
+NROFF = nroff
 DIST_COMMON =  Makefile.am Makefile.in
 
 
t@@ -109,6 +115,45 @@ Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
         cd $(top_builddir) \
           && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
+
+install-man6:
+        $(mkinstalldirs) $(DESTDIR)$(man6dir)
+        @list='$(man6_MANS)'; \
+        l2='$(man_MANS)'; for i in $$l2; do \
+          case "$$i" in \
+            *.6*) list="$$list $$i" ;; \
+          esac; \
+        done; \
+        for i in $$list; do \
+          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
+          else file=$$i; fi; \
+          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+          inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+          inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+          echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man6dir)/$$inst"; \
+          $(INSTALL_DATA) $$file $(DESTDIR)$(man6dir)/$$inst; \
+        done
+
+uninstall-man6:
+        @list='$(man6_MANS)'; \
+        l2='$(man_MANS)'; for i in $$l2; do \
+          case "$$i" in \
+            *.6*) list="$$list $$i" ;; \
+          esac; \
+        done; \
+        for i in $$list; do \
+          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+          inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+          inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+          echo " rm -f $(DESTDIR)$(man6dir)/$$inst"; \
+          rm -f $(DESTDIR)$(man6dir)/$$inst; \
+        done
+install-man: $(MANS)
+        @$(NORMAL_INSTALL)
+        $(MAKE) $(AM_MAKEFLAGS) install-man6
+uninstall-man:
+        @$(NORMAL_UNINSTALL)
+        $(MAKE) $(AM_MAKEFLAGS) uninstall-man6
 tags: TAGS
 TAGS:
 
t@@ -144,19 +189,20 @@ installcheck: installcheck-am
 install-exec-am:
 install-exec: install-exec-am
 
-install-data-am: install-data-local
+install-data-am: install-man install-data-local
 install-data: install-data-am
 
 install-am: all-am
         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
 install: install-am
-uninstall-am:
+uninstall-am: uninstall-man
 uninstall: uninstall-am
-all-am: Makefile
+all-am: Makefile $(MANS)
 all-redirect: all-am
 install-strip:
         $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
 installdirs:
+        $(mkinstalldirs)  $(DESTDIR)$(mandir)/man6
 
 
 mostlyclean-generic:
t@@ -186,12 +232,13 @@ maintainer-clean-am:  maintainer-clean-generic distclean-am
 
 maintainer-clean: maintainer-clean-am
 
-.PHONY: tags distdir info-am info dvi-am dvi check check-am \
-installcheck-am installcheck install-exec-am install-exec \
-install-data-local install-data-am install-data install-am install \
-uninstall-am uninstall all-redirect all-am all installdirs \
-mostlyclean-generic distclean-generic clean-generic \
-maintainer-clean-generic clean mostlyclean distclean maintainer-clean
+.PHONY: install-man6 uninstall-man6 install-man uninstall-man tags \
+distdir info-am info dvi-am dvi check check-am installcheck-am \
+installcheck install-exec-am install-exec install-data-local \
+install-data-am install-data install-am install uninstall-am uninstall \
+all-redirect all-am all installdirs mostlyclean-generic \
+distclean-generic clean-generic maintainer-clean-generic clean \
+mostlyclean distclean maintainer-clean
 
 
 install-data-local:
diff --git a/doc/dopewars.6 b/doc/dopewars.6
t@@ -0,0 +1,57 @@
+.TH DOPEWARS 6
+.SH NAME
+dopewars \- drug dealing game
+.SH SYNOPSIS
+.B dopewars
+.I "[OPTIONS] ..."
+.SH "DESCRIPTION"
+.B dopewars
+is a ncurses-based drug dealing game based in New York, with you as
+the drug dealer striving to become filthy rich. It supports network
+play and single-player games.
+.SH OPTIONS
+Valid commandline options:
+.TP
+.B \-b
+"black and white", i.e. do not use pretty colours
+.TP
+.B \-n
+Do not connect to any available dopewars servers
+.TP
+.B \-a
+Antique dopewars, stick as close as possible to the functionality of the
+original version.
+.TP
+.B \-f file
+Specify a file to use as high score table (defaults to /var/games/dopewars/dopewars.sco)
+.TP
+.B \-o addr
+Specify a multiplayer hostname
+.TP
+.B \-s
+Run in server mode. If you want a non-interactive server, use the command:
+dopewars -s < /dev/null >>logfile &
+.TP
+.B \-S
+Run as a "private" server
+.TP
+.B \-p port
+Specify the network port to use
+.TP
+.B \-g file
+Specify the pathname of a dopewars configuration file
+.TP
+.B \-r file
+Specify the pathname of a PID file to maintain while running as a server
+.TP
+.B \-c
+Create and run a computer player
+.TP
+.B \-h
+Display a help screen
+.TP
+.B \-v
+Output version information and exit.
+.SH AUTHOR
+This manual page was written by Leon Breedt ,
+for the Debian GNU/Linux system (but may be used by others).
diff --git a/dopewars.spec b/dopewars.spec
t@@ -39,6 +39,7 @@ make install-strip
 
 /usr/bin/dopewars
 /usr/share/dopewars.sco
+/usr/man/man6/dopewars.6
 /usr/share/locale/de/LC_MESSAGES/dopewars.mo
 /usr/share/locale/pl/LC_MESSAGES/dopewars.mo
 /usr/share/locale/pt_BR/LC_MESSAGES/dopewars.mo