threads / patch / 2182

patchQuote COGITO_LIB in scripts

Subject: [PATCH] Quote COGITO_LIB in scripts

## tl;dr

One message between Oct 21, 2005 and Oct 21, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Jonas Fonseca· Oct 21, 2005, 13:16 UTC · lore
... so they work when prefix contains spaces.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
---
Show changes to Makefile +2 −2
diff --git a/Makefile b/Makefile
index fd52992..1b61953 100644
--- a/Makefile
+++ b/Makefile
@@ -92,12 +92,12 @@ install-cogito: $(SCRIPT) $(LIB_SCRIPT) 
 	$(INSTALL) $(LIB_SCRIPT) $(DESTDIR)$(libdir)
 	cd $(DESTDIR)$(bindir); \
 	for file in $(SCRIPT); do \
-		sed -e 's/\$${COGITO_LIB}/\$${COGITO_LIB:-$(sedlibdir)\/}/g' $$file > $$file.new; \
+		sed -e 's/\$${COGITO_LIB}/"\$${COGITO_LIB:-$(sedlibdir)\/}"/g' $$file > $$file.new; \
 		cat $$file.new > $$file; rm $$file.new; \
 	done
 	cd $(DESTDIR)$(libdir); \
 	for file in $(LIB_SCRIPT); do \
-		sed -e 's/\$${COGITO_LIB}/\$${COGITO_LIB:-$(sedlibdir)\/}/g' $$file > $$file.new; \
+		sed -e 's/\$${COGITO_LIB}/"\$${COGITO_LIB:-$(sedlibdir)\/}"/g' $$file > $$file.new; \
 		cat $$file.new > $$file; rm $$file.new; \
 	done
 
-- 
Jonas Fonseca

← back to recent threads