summaryrefslogtreecommitdiffstats
path: root/git-instaweb.sh
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-12-06 14:24:42 +0100
committerJunio C Hamano <gitster@pobox.com>2024-12-06 23:52:09 +0100
commitc2a3b847eda3b51973998c1fa0a8749eb7e686b9 (patch)
treec84fb9648d1c6438e1d0ab33d912d98dfc6be6c2 /git-instaweb.sh
parentMakefile: generate doc versions via GIT-VERSION-GEN (diff)
downloadgit-c2a3b847eda3b51973998c1fa0a8749eb7e686b9.tar.xz
git-c2a3b847eda3b51973998c1fa0a8749eb7e686b9.zip
Makefile: consistently use PERL_PATH
When injecting the Perl path into our scripts we sometimes use '@PERL@' while we othertimes use '@PERL_PATH@'. Refactor the code use the latter consistently, which makes it easier to reuse the same logic for multiple scripts. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-instaweb.sh')
-rwxr-xr-xgit-instaweb.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-instaweb.sh b/git-instaweb.sh
index c8efb1205a..5ad50160bb 100755
--- a/git-instaweb.sh
+++ b/git-instaweb.sh
@@ -3,7 +3,7 @@
# Copyright (c) 2006 Eric Wong
#
-PERL='@PERL@'
+PERL='@PERL_PATH@'
OPTIONS_KEEPDASHDASH=
OPTIONS_STUCKLONG=
OPTIONS_SPEC="\
@@ -716,7 +716,7 @@ EOF
gitweb_conf() {
cat > "$fqgitdir/gitweb/gitweb_config.perl" <<EOF
-#!@PERL@
+#!@PERL_PATH@
our \$projectroot = "$(dirname "$fqgitdir")";
our \$git_temp = "$fqgitdir/gitweb/tmp";
our \$projects_list = \$projectroot;