git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] winworddiff: Check the path to winword.exe during the installation.

From
Johannes Sixt <johannes.sixt@telecom.at>
Date
Sep 27, 2007, 11:45 UTC
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 <johannes.sixt@telecom.at>
---
 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
Previous: Johannes SixtNext: Johannes Schindelin
Message 2 of 3 in “contrib: Add diff viewing capability for Microsoft Word documents”
  1. 1/2 contrib: Add diff viewing capability for Microsoft Word documentsJohannes Sixt, Sep 27, 2007
  2. 2/2 winworddiff: Check the path to winword.exe during the installation.Johannes Sixt, Sep 27, 2007
  3. Johannes SchindelinSep 27, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.