summaryrefslogtreecommitdiff
path: root/generate-perl.sh
diff options
context:
space:
mode:
authorD. Ben Knoble <ben.knoble+github@gmail.com>2025-11-04 13:14:57 -0500
committerJunio C Hamano <gitster@pobox.com>2025-11-06 09:57:47 -0800
commit38419bdd45e6fb872383f151b337f030ed30cbb4 (patch)
tree2dd05d0fbbb47a3581a300f34319cdfb3f958656 /generate-perl.sh
parent7f278e958afbf9b7e0727631b4c26dcfa1c63d6e (diff)
perl: also mark git-contacts executable
When installing git-contacts with Meson via -Dcontrib=contacts, the default Perl generation fails to mark it executable. As a result, "git contacts" reports "'contacts' is not a git command." Unlike generate-script.sh, we aren't testing the basename here; so, glob the script name in the case arm to match wherever the input comes from. Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'generate-perl.sh')
-rwxr-xr-xgenerate-perl.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/generate-perl.sh b/generate-perl.sh
index 65f122ebfc..796d835932 100755
--- a/generate-perl.sh
+++ b/generate-perl.sh
@@ -30,7 +30,7 @@ sed -e '1{' \
"$INPUT" >"$OUTPUT"
case "$INPUT" in
-*.perl)
+*.perl|*git-contacts)
chmod a+x "$OUTPUT";;
*)
;;