]> git.llucax.com Git - software/makeit.git/commitdiff
Don't add extra spaces in abbr function
authorLeandro Lucarella <llucarella@integratech.com.ar>
Mon, 21 Sep 2009 22:08:21 +0000 (19:08 -0300)
committerLeandro Lucarella <llucarella@integratech.com.ar>
Thu, 24 Sep 2009 13:38:30 +0000 (10:38 -0300)
In some situations an extra leading space is added when using the abbr
function. This patch fixes that.

Lib.mak

diff --git a/Lib.mak b/Lib.mak
index bddc5e1b0e7dd85c293178039ffe7dfabe5c418d..58b804f4d60523121b9bb1f89d7354da8411f7fd 100644 (file)
--- a/Lib.mak
+++ b/Lib.mak
@@ -110,8 +110,8 @@ find_files = $(patsubst $(if $3,$3,$C)/%$1,$(if $2,$2,$(if $3,$3,$C))/%$1, \
 # directory, so it can be displayed as if it were a relative directory. Take
 # just one argument, the file name.
 abbr_helper = $(subst $T,.,$(patsubst $T/%,%,$1))
-abbr = $(if $(call eq,$(call abbr_helper,$1),$1),$1, \
-       $(addprefix $(shell echo $R | sed 's|/\?\([^/]\+\)/\?|../|g'),\
+abbr = $(if $(call eq,$(call abbr_helper,$1),$1),$1,$(addprefix \
+               $(shell echo $R | sed 's|/\?\([^/]\+\)/\?|../|g'),\
                $(call abbr_helper,$1)))
 
 # Execute a command printing a nice message if $V is @.