X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Fapi-support%2Fupdate-from-tarballs.sh;h=241cd1645dfd60b981fcfa09c38e718ecd4129ae;hb=cdd11b758f2601f7eeda4fca684638b0335d531a;hp=59f78d92a0f6a9154b4223223a01e2629bf998ee;hpb=446db62e113594fef84d2f533ef3a1330153f0bb;p=libguestfs.git diff --git a/src/api-support/update-from-tarballs.sh b/src/api-support/update-from-tarballs.sh index 59f78d9..241cd16 100755 --- a/src/api-support/update-from-tarballs.sh +++ b/src/api-support/update-from-tarballs.sh @@ -16,7 +16,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -if [ ! -f HACKING ]; then +if [ ! -f BUGS ]; then echo "You should run this script from the top source directory." exit 1 fi @@ -84,7 +84,7 @@ for v in $rev_versions; do for sym in $symbols; do # If symbol is missing from the file, that indicates it # was added in the previous file we checked ($previous). - if ! grep -sq $sym $v; then + if ! egrep -sq \\b$sym\\b $v; then echo $sym $previous >&5 else next_symbols="$next_symbols $sym"