contrib/credential/netrc: make PERL_PATH configurable
commit1c78c78d2513eaf22105c87484c65b4eecdf0bfc
authorDenton Liu <liu.denton@gmail.com>
Fri, 20 Dec 2019 18:45:00 +0000 (20 10:45 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Dec 2019 20:40:50 +0000 (20 12:40 -0800)
tree3f25f8997fe2dc10d379bd28bad5a06fc9e56ec4
parent53a06cf39b756eddfe4a2a34da93e3d04eb7b728
contrib/credential/netrc: make PERL_PATH configurable

The shebang path for the Perl interpreter in git-credential-netrc was
hardcoded. However, some users may have it located at a different
location and thus, would have had to manually edit the script.

Add a .perl prefix to the script to denote it as a template and ignore
the generated version. Augment the Makefile so that it generates
git-credential-netrc from git-credential-netrc.perl, just like other
Perl scripts.

The Makefile recipes were shamelessly stolen from
contrib/mw-to-git/Makefile.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/credential/netrc/.gitignore [new file with mode: 0644]
contrib/credential/netrc/Makefile
contrib/credential/netrc/git-credential-netrc.perl [moved from contrib/credential/netrc/git-credential-netrc with 100% similarity]