From: Jan Nieuwenhuizen Date: Tue, 20 Jan 2009 10:22:05 +0000 (+0100) Subject: Use env INTERPRETER iso script's #! for help2man generation - fixes gub3 doc. X-Git-Tag: release/2.12.2-1~4^2~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=59c1f27254e9b04bcd92f17968da679007f2ef4c;p=lilypond.git Use env INTERPRETER iso script's #! for help2man generation - fixes gub3 doc. --- diff --git a/stepmake/stepmake/help2man-rules.make b/stepmake/stepmake/help2man-rules.make index e0498b0148..6c176bac5e 100644 --- a/stepmake/stepmake/help2man-rules.make +++ b/stepmake/stepmake/help2man-rules.make @@ -15,7 +15,11 @@ # 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