build: don't depend on the word size of nm output
authorAndrew Tridgell <tridge@samba.org>
Sun, 18 Apr 2010 07:31:24 +0000 (17:31 +1000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 18 Apr 2010 07:32:26 +0000 (17:32 +1000)
the first column varies in length for different architectures

buildtools/scripts/abi_gen.sh

index fa708dd8e427c6649468742395f01f2323d27749..ce589c292e34dc16bf4e5f612540478180725e82 100755 (executable)
@@ -10,7 +10,7 @@ cat <<EOF
 set height 0
 set width 0
 EOF
 set height 0
 set width 0
 EOF
-nm $SHAREDLIB | cut -c18- | egrep '^[DGTRVW]' | grep -v @ | cut -c3- | sort | while read s; do
+nm $SHAREDLIB | cut -d' ' -f2- | egrep '^[DGTRVW]' | grep -v @ | cut -c3- | sort | while read s; do
     echo "echo $s: "
     echo p $s
 done
     echo "echo $s: "
     echo p $s
 done