]> git.wh0rd.org - fontconfig.git/commitdiff
Replace gnu-specific sed command with simple grep.
authorKeith Packard <keithp@neko.keithp.com>
Thu, 7 Sep 2006 21:37:52 +0000 (14:37 -0700)
committerKeith Packard <keithp@neko.keithp.com>
Thu, 7 Sep 2006 21:37:52 +0000 (14:37 -0700)
makealias was using a gnu-extension to sed addressing, replace that with a
simple (and more robuse) grep command. Also, found a bug in the public
header file that was leaving one symbol out of the process.

fontconfig/fontconfig.h
src/makealias

index 08153a011cf4c07e21eb8fffe23db2312e5de6f9..927249a5c07dcb126ce3b376513b40f957a15d38 100644 (file)
@@ -312,7 +312,7 @@ FcCacheNumSubdir (const FcCache *c);
 FcPublic int
 FcCacheNumFont (const FcCache *c);
 
-FcBool
+FcPublic FcBool
 FcDirCacheUnlink (const FcChar8 *dir, FcConfig *config);
 
 FcPublic FcBool
index db76a45e73c2e863612d38305225c2ce992d3176..ebbe5596796afc15fe4f813cf1776c1b3595870b 100755 (executable)
@@ -4,7 +4,7 @@ shift
 HEAD=fcalias.h
 TAIL=fcaliastail.h
 rm -f $HEAD $TAIL
-sed -n -e '/^FcPublic /,+1p' "$@" | sed -e '/^FcPublic /d' -e 's/ *(.*$//' |
+cat "$@" | grep '^Fc[^ ]* *(' | sed -e 's/ *(.*$//' |
 while read name; do
        case $name in
        FcCacheDir|FcCacheSubdir)