diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-12-31 15:32:44 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-12-31 15:32:44 +0000 |
commit | 21af4c8fe56e8649fd5f701dd8ccd4760e101a32 (patch) | |
tree | 6daeecff44f600de78519b4a3873ff7b41040c5d /lib/fontconfig | |
parent | 54aa43e2a53a1aae1ccce74ccef55c1c6dcf0691 (diff) |
Use portable posix regexp with grep
Diffstat (limited to 'lib/fontconfig')
-rw-r--r-- | lib/fontconfig/src/makealias | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fontconfig/src/makealias b/lib/fontconfig/src/makealias index 02167b25b..711d30c91 100644 --- a/lib/fontconfig/src/makealias +++ b/lib/fontconfig/src/makealias @@ -15,7 +15,7 @@ while read name; do hattr='__attribute((visibility("hidden")))' echo "extern __typeof ($name) $alias $hattr;" >> $HEAD echo "#define $name $alias" >> $HEAD - grep -l -w '^'$name "$SRCDIR"/*.c | sed -e 's/^.*\/\([^.]*\)\.c/#ifdef __\1__/' >> $TAIL + egrep -l '^'$name'[[:>:]]' "$SRCDIR"/*.c | head -1 | sed -e 's/^.*\/\([^.]*\)\.c/#ifdef __\1__/' >> $TAIL echo "#undef $name" >> $TAIL cattr='__attribute((alias("'$alias'"), visibility("default")))' echo "extern __typeof ($name) $name $cattr;" >> $TAIL |