summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2006-12-31 15:32:44 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2006-12-31 15:32:44 +0000
commit21af4c8fe56e8649fd5f701dd8ccd4760e101a32 (patch)
tree6daeecff44f600de78519b4a3873ff7b41040c5d /lib
parent54aa43e2a53a1aae1ccce74ccef55c1c6dcf0691 (diff)
Use portable posix regexp with grep
Diffstat (limited to 'lib')
-rw-r--r--lib/fontconfig/src/makealias2
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