# HG changeset patch # User muxator # Date 2017-10-11 00:06:12 # Node ID 884855ce5e6380b4c11f438f5fe38127880b53fe # Parent baa5228895407b31b87238cd3e3df3f59cc34061 build: chg build was failing when the base directory contained spaces diff --git a/contrib/chg/Makefile b/contrib/chg/Makefile --- a/contrib/chg/Makefile +++ b/contrib/chg/Makefile @@ -31,15 +31,15 @@ util.o: util.h .PHONY: install install: $(TARGET) - install -d $(DESTDIR)$(PREFIX)/bin - install -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin - install -d $(DESTDIR)$(MANDIR) - install -m 644 chg.1 $(DESTDIR)$(MANDIR) + install -d "$(DESTDIR)$(PREFIX)"/bin + install -m 755 "$(TARGET)" "$(DESTDIR)$(PREFIX)"/bin + install -d "$(DESTDIR)$(MANDIR)" + install -m 644 chg.1 "$(DESTDIR)$(MANDIR)" .PHONY: serve serve: - [ -d $(CHGSOCKDIR) ] || ( umask 077; mkdir $(CHGSOCKDIR) ) - $(HG) serve --cwd / --cmdserver chgunix \ + [ -d "$(CHGSOCKDIR)" ] || ( umask 077; mkdir "$(CHGSOCKDIR)" ) + "$(HG)" serve --cwd / --cmdserver chgunix \ --address $(CHGSOCKNAME) \ --config cmdserver.log=/dev/stderr