Post 2.3 cycle (batch #7)
[gitweb.git] / check-builtins.sh
index d6fe6cf1749ebcd6189fa36cbb4e14a532d2d17b..a0aaf3a3473cadb162f8c39175b0ceb6cee1535a 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"