]> Cypherpunks repositories - gostls13.git/commitdiff
Make.conf: fix if $HOME has spaces
authorRuss Cox <rsc@golang.org>
Fri, 4 Dec 2009 01:22:43 +0000 (17:22 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 4 Dec 2009 01:22:43 +0000 (17:22 -0800)
R=r
https://golang.org/cl/164086

src/Make.conf

index 21eee46784d10f9686b152e0410069f570604080..242fb742737b822abafb585af352860357c39f14 100644 (file)
@@ -9,7 +9,10 @@ O=o
 YFLAGS=-d
 # GNU Make syntax:
 ifndef GOBIN
-GOBIN="$(HOME)/bin"
+nullstring :=
+space := $(nullstring) # a space at the end
+QUOTED_HOME=$(subst $(space),\ ,$(HOME))
+GOBIN=$(QUOTED_HOME)/bin
 endif
 PWD=$(shell pwd)