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.
This commit is contained in:
parent
3582793055
commit
da88012088
1 changed files with 5 additions and 6 deletions
|
|
@ -17,28 +17,27 @@ BASH_COMPLETION_SCRIPTLETS = \
|
|||
bashcompletion_DATA = $(BASH_COMPLETION_SCRIPTLETS)
|
||||
CLEANFILES = $(BASH_COMPLETION_SCRIPTLETS)
|
||||
|
||||
MANDIR = $(top_srcdir)/man
|
||||
DOCGEN = $(MANDIR)/docgen
|
||||
DOCGEN = $(top_srcdir)/man/docgen
|
||||
DOCGEN_COMMON_ARGS = -n "@PROGRAM_SPREFIX@" -s "@PACKAGE_NAME@" -z "@PACKAGE_SHORTNAME@"
|
||||
|
||||
@PROGRAM_PREFIX@doom: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES)
|
||||
$(DOCGEN) $(DOCGEN_COMMON_ARGS) \
|
||||
-g doom -b $(MANDIR)/doom.template \
|
||||
-g doom -b doom.template \
|
||||
$(top_srcdir)/src $(top_srcdir)/src/doom > $@
|
||||
|
||||
@PROGRAM_PREFIX@heretic: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES)
|
||||
$(DOCGEN) $(DOCGEN_COMMON_ARGS) \
|
||||
-g heretic -b $(MANDIR)/heretic.template \
|
||||
-g heretic -b heretic.template \
|
||||
$(top_srcdir)/src $(top_srcdir)/src/heretic > $@
|
||||
|
||||
@PROGRAM_PREFIX@hexen: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES)
|
||||
$(DOCGEN) $(DOCGEN_COMMON_ARGS) \
|
||||
-g hexen -b $(MANDIR)/hexen.template \
|
||||
-g hexen -b hexen.template \
|
||||
$(top_srcdir)/src $(top_srcdir)/src/hexen > $@
|
||||
|
||||
@PROGRAM_PREFIX@strife: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES)
|
||||
$(DOCGEN) $(DOCGEN_COMMON_ARGS) \
|
||||
-g strife -b $(MANDIR)/strife.template \
|
||||
-g strife -b strife.template \
|
||||
$(top_srcdir)/src $(top_srcdir)/src/strife > $@
|
||||
|
||||
EXTRA_DIST = \
|
||||
|
|
|
|||
Loading…
Reference in a new issue