From: Johannes Sixt Date: Thu, 27 Sep 2007 11:45:59 GMT Subject: [PATCH 2/2] winworddiff: Check the path to winword.exe during the installation. Message-ID: <11908935604108-git-send-email-johannes.sixt@telecom.at> In-Reply-To: <11908935593618-git-send-email-johannes.sixt@telecom.at> Since we do not find the path to winword.exe automatically, but rely on what the user has told us, we better check the path for plausibility. Signed-off-by: Johannes Sixt --- contrib/winword/diff/Makefile | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/contrib/winword/diff/Makefile b/contrib/winword/diff/Makefile index 61de940..91b9328 100644 --- a/contrib/winword/diff/Makefile +++ b/contrib/winword/diff/Makefile @@ -1,3 +1,4 @@ +# You can override any of these from ../../../config.mak prefix = $(HOME) bindir = $(prefix)/bin datadir = $(prefix)/share/winworddiff @@ -8,6 +9,9 @@ INSTALL = install all: winworddiff winworddiff.dot winworddiff: winworddiff.sh +ifndef FORCE + exec < "$(WINWORDEXE)" # check existence; override with 'make FORCE=1' +endif sed -e 's|@@WINWORDEXE@@|$(WINWORDEXE)|' \ -e 's|@@PREFIX@@|$(prefix)|' \ < $@.sh > $@ -- 1.5.3.3.gcc9e