Use portable posix regexp with grep
This commit is contained in:
parent
ca3f97f223
commit
5266b79337
@ -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 '^'$name'\>' "$SRCDIR"/*.c | head -1 | 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
|
||||
|
Loading…
Reference in New Issue
Block a user