Commit graph

12 commits

Author SHA1 Message Date
Mike Swanson
96e0123cd2 bash-completion: complete list of valid -gameversion parameters 2018-01-27 04:52:05 -08:00
Mike Swanson
da88012088 bash-completion: Build from actual shell script templates.
At some point, the Makefile was inerrantly modified so that it
generated manpage sources instead of shell script, making completions
very screwed up.
2018-01-27 04:49:08 -08:00
Jonathan Dowland
ccfbd4a046 bash-completion: run docgen with -z argument 2018-01-15 19:10:16 +00:00
Jonathan Dowland
e0b8a7e0a9 overhaul manpages, add parameters
This is in order to better support derivative engines.

Rework the manpages to be parameterized with @PROGRAM_PREFIX@ and
@PACKAGE_NAME@. Alter the `docgen` generator to substitute those
parameters. Supply those parameters via the autofoo Makefile.

Adjust the fixed path chocolate-server.6 to be generated from
server.template, similar to doom.template -> chocolate-doom.6.

Further work is required, not least renaming chocolate-setup.6,
but several further parameterizations.
2018-01-09 17:19:49 +00:00
Fabian Greffrath
a28f58da05 Merge branch 'master' into sdl2-branch 2017-04-24 14:46:31 +02:00
Mike Swanson
7f4e1ae124 bash-completion: Use autoconf substitutions for the chocolate name
Introduce a new PROGRAM_SPREFIX variable in configure.ac, which is
basically identical to PROGRAM_PREFIX but without the trailing hyphen.
PROGRAM_PREFIX was also redefined so that it bases its name from
PACKAGE_SHORTNAME, reducing the number of hardcoded chocolates in the
source.
2017-03-05 18:43:22 -08:00
Simon Howard
490def9eb3 man: Fix build to allow out-of-tree builds.
For out-of-tree builds we must specify the full paths to source files
using $(srcdir). Do this for all the template files and clean up some
of the confusing and inconsistent usage of source dir paths already in
place.
2016-07-18 00:07:43 -04:00
Fabian Greffrath
cb4848b8da bash-completion: allow multiple files with the same extensions
passed to the same switch, e.g. -file a.wad b.wad.

Also, fix the -setmen typo.
2015-10-30 08:53:37 +01:00
Fabian Greffrath
278cd34b3e bash-completion: fix syntax error
_filedir expects a regex as an argument, not a lose list of file extensions
2015-10-30 08:25:21 +01:00
Mike Swanson
c3e5879502 bash-completion: Detect the appropriate directory for installation 2015-10-27 09:30:24 -07:00
Fabian Greffrath
ad37a8ff33 Bash-Completion: First attempt at programatically creating the parameters list 2015-10-26 18:44:30 +01:00
Fabian Greffrath
d9738a5372 man: add a bash-completion scriptlet
Only one for all four games and only static for the time being.

In the long term, we should modify the docgen script to emit the
possible valid command line parameters and their additional options
and thus create separate bash-completion scriptlets for all four
games.
2015-10-18 11:48:57 +02:00