From 461edf2c3a71d023d8464404c8ee54e2c96eea82 Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Tue, 26 Jan 2016 15:21:34 +0100 Subject: [PATCH] Makefile: fix shebang substitution git-latexdiff does require bash, hence we can't substitute /bin/sh as the shell bang. Also, the previous regular expression wasn't matching the actual shebang. Fixes #8. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f379c38..5eb66e4 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ gitexecdir = ${shell git --exec-path} -include ./config.mak ifndef SHELL_PATH - SHELL_PATH = /bin/sh + SHELL_PATH = /bin/bash endif SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH)) @@ -20,7 +20,7 @@ help: @echo 'Run "$(MAKE) install" to install $(SCRIPT) in gitexecdir.' install: - sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \ + sed -e '1s|#!.*/bash|#!$(SHELL_PATH_SQ)|' \ -e 's|@GIT_LATEXDIFF_VERSION@|$(GIT_LATEXDIFF_VERSION)|' \ $(SCRIPT) > '$(gitexecdir_SQ)/$(SCRIPT)' chmod 755 '$(gitexecdir_SQ)/$(SCRIPT)'