From 59c1f27254e9b04bcd92f17968da679007f2ef4c Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Tue, 20 Jan 2009 11:22:05 +0100 Subject: [PATCH] Use env INTERPRETER iso script's #! for help2man generation - fixes gub3 doc. --- stepmake/stepmake/help2man-rules.make | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5