[PATCH v3 4/4] cgit.mk: Use SHELL_PATH_SQ to run gen-version.sh

John Keeping john at keeping.me.uk
Wed Mar 6 22:22:09 CET 2013


On some platforms (notably Solaris) /bin/sh doesn't support enough of
POSIX for gen-version.sh to run.  Git's Makefile provides SHELL_PATH_SQ
to address this issue so we just have to use it.

Signed-off-by: John Keeping <john at keeping.me.uk>
---
 cgit.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cgit.mk b/cgit.mk
index c8ecd3a..e1aed63 100644
--- a/cgit.mk
+++ b/cgit.mk
@@ -9,7 +9,7 @@ CGIT_PREFIX = ../
 # main Makefile - they are defined there.
 
 $(CGIT_PREFIX)VERSION: force-version
-	@cd $(CGIT_PREFIX) && ./gen-version.sh "$(CGIT_VERSION)"
+	@cd $(CGIT_PREFIX) && '$(SHELL_PATH_SQ)' ./gen-version.sh "$(CGIT_VERSION)"
 -include $(CGIT_PREFIX)VERSION
 .PHONY: force-version
 
-- 
1.8.2.rc2.4.g7799588





More information about the CGit mailing list