git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2400da
)
api-support: Fix detection of similar APIs.
author
Richard W.M. Jones
<rjones@redhat.com>
Sun, 19 Dec 2010 22:08:49 +0000
(22:08 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Sun, 19 Dec 2010 22:09:40 +0000
(22:09 +0000)
Because we didn't match on word boundaries, the previous
code would get confused by similar APIs, eg. getxattr vs getxattrs.
src/api-support/update-from-tarballs.sh
patch
|
blob
|
history
diff --git
a/src/api-support/update-from-tarballs.sh
b/src/api-support/update-from-tarballs.sh
index
8579825
..
241cd16
100755
(executable)
--- a/
src/api-support/update-from-tarballs.sh
+++ b/
src/api-support/update-from-tarballs.sh
@@
-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"