Bug 48020 - Fix for src/makealias on Solaris 10
authorAkira TAGOH <akira@tagoh.org>
Thu, 29 Mar 2012 06:43:11 +0000 (15:43 +0900)
committerAkira TAGOH <akira@tagoh.org>
Thu, 29 Mar 2012 06:43:38 +0000 (15:43 +0900)
Use the command substitution `command` instead of $(command) for
Solaris 10.

src/makealias

index fca94d4..e2f31c6 100755 (executable)
@@ -17,7 +17,7 @@ while read name; do
                hattr='__attribute((visibility("hidden")))'
                echo "extern __typeof ($name) $alias $hattr;" >> $HEAD
                echo "#define $name $alias" >> $HEAD
-               ifdef=$(grep -l '^'$name'[ (]' "$SRCDIR"/*.c | sed -n 1p | sed -e 's/^.*\/\([^.]*\)\.c/__\1__/')
+               ifdef=`grep -l '^'$name'[ (]' "$SRCDIR"/*.c | sed -n 1p | sed -e 's/^.*\/\([^.]*\)\.c/__\1__/'`
                if [ -z "$ifdef" ] ; then
                        echo "error: could not locate $name in src/*.c" 1>&2
                        exit 1