]> git.donarmstrong.com Git - lilypond.git/commitdiff
Use env INTERPRETER iso script's #! for help2man generation - fixes gub3 doc.
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 20 Jan 2009 10:22:05 +0000 (11:22 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 20 Jan 2009 10:44:07 +0000 (11:44 +0100)
stepmake/stepmake/help2man-rules.make

index e0498b01488c23ad051e55442967df27183471b0..6c176bac5e7b0995cf33ee66ed452cb4e2bc802a 100644 (file)
 # cases.  Four more explaining what a line comment is, and that it may
 # be parsed, same here.
 
+ifeq ($(PYTHON),$(TARGET_PYTHON))
 HELP2MAN_COMMAND = $(buildscript-dir)/help2man $< > $@
+else
+HELP2MAN_COMMAND = $(buildscript-dir)/help2man "env $$(basename $$(head -1 $<)) $<" > $@
+endif
 
 ifeq ($(strip $(CROSS)),no)
 $(outdir)/%.1: $(outdir)/% $(buildscript-dir)/help2man