Quote COGITO_LIB in scripts
PATCH 1/1 Quote COGITO_LIB in scripts
... so they work when prefix contains spaces.
Signed-off-by Jonas Fonseca <[email protected]>
---
Makefile +2 -2
@@ -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
Signature · 1 line
Jonas Fonseca