pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pre-commit: use REPLACE_BASH for hook script



Module Name:	pkgsrc-wip
Committed By:	pickles <pickles%tilde.pink@localhost>
Pushed By:	iquiw
Date:		Sat Jan 22 15:36:52 2022 +0100
Changeset:	642e9b917880c318b1f87f27cc6e2d0cb49b9cfa

Modified Files:
	pre-commit/Makefile

Log Message:
pre-commit: use REPLACE_BASH for hook script

Fixes

* use REPLACE_BASH for hook script

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=642e9b917880c318b1f87f27cc6e2d0cb49b9cfa

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 pre-commit/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diffs:
diff --git a/pre-commit/Makefile b/pre-commit/Makefile
index aac1262c0d..fed5e01de5 100644
--- a/pre-commit/Makefile
+++ b/pre-commit/Makefile
@@ -25,8 +25,10 @@ DEPENDS+=	${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-meta
 .endif
 
 USE_LANGUAGES=	# none
+USE_TOOLS+=	bash
 
-REPLACE_PYTHON=	pre-commit.py pre_commit/resources/hook-tmpl
+REPLACE_PYTHON=	pre-commit.py
+REPLACE_BASH=	pre_commit/resources/hook-tmpl
 
 .include "../../lang/python/application.mk"
 .include "../../lang/python/egg.mk"


Home | Main Index | Thread Index | Old Index