]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Use GNU make magic instead of shell magic to escape spaces in the working directory.
authorRussell Bryant <russell@russellbryant.com>
Tue, 29 Jan 2008 17:21:33 +0000 (17:21 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 29 Jan 2008 17:21:33 +0000 (17:21 +0000)
(related to issue #11834)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@100922 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index f7909b601d2d18716859ba0aea2dea26df425e18..534367237223285ad8013f52d7e800b852bd43df 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -87,7 +87,9 @@ ASTLDFLAGS+=$(LDOPTS)
 # Create OPTIONS variable
 OPTIONS=
 
-ASTTOPDIR:=$(shell pwd | sed -e 's/ /\\ /g')
+empty:=
+space:=$(empty) $(empty)
+ASTTOPDIR:=$(subst $(space),\$(space),$(CURDIR))
 
 # Overwite config files on "make samples"
 OVERWRITE=y