fontconfig: Branch 'master'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 src/makealias |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a72ef35ce68efa3687dee84d49dc40a5ccd22917
Author: Keith Packard <keithp@xxxxxxxxxxxxxxx>
Date:   Thu Oct 25 00:22:04 2007 -0700

    Replace makealias pattern with something supported by POSIX grep (bug 11083)
    
    The suggested replacement in the bug was not supported by GNU grep, so I
    created something that should be supported everywhere (famous last words).

diff --git a/src/makealias b/src/makealias
index ef4d3c2..bbc90f0 100755
--- a/src/makealias
+++ b/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 '^'$name'\>' "$SRCDIR"/*.c | head -1 | sed -e 's/^.*\/\([^.]*\)\.c/#ifdef __\1__/' >> $TAIL
+		grep -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
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux