Imported Upstream version 2.19.1
[platform/upstream/git.git] / check-builtins.sh
index d6fe6cf..a0aaf3a 100755 (executable)
@@ -3,7 +3,7 @@
 {
        cat <<\EOF
 sayIt:
-       $(foreach b,$(BUILT_INS),echo XXX $b YYY;)
+       $(foreach b,$(BUILT_INS),echo XXX $(b:$X=) YYY;)
 EOF
        cat Makefile
 } |
@@ -14,8 +14,8 @@ sort |
     bad=0
     while read builtin
     do
-       base=`expr "$builtin" : 'git-\(.*\)'`
-       x=`sed -ne 's/.*{ "'$base'", \(cmd_[^, ]*\).*/'$base'   \1/p' git.c`
+       base=$(expr "$builtin" : 'git-\(.*\)')
+       x=$(sed -ne 's/.*{ "'$base'", \(cmd_[^, ]*\).*/'$base'  \1/p' git.c)
        if test -z "$x"
        then
                echo "$base is builtin but not listed in git.c command list"