]> git.wh0rd.org - fontconfig.git/blobdiff - src/makealias
Warn (and recover) from config file without <cachedir> elements.
[fontconfig.git] / src / makealias
index db76a45e73c2e863612d38305225c2ce992d3176..02167b25bdf1cfda21b0839c42fd661d3e3a8214 100755 (executable)
@@ -4,7 +4,8 @@ shift
 HEAD=fcalias.h
 TAIL=fcaliastail.h
 rm -f $HEAD $TAIL
-sed -n -e '/^FcPublic /,+1p' "$@" | sed -e '/^FcPublic /d' -e 's/ *(.*$//' |
+echo "#if HAVE_GNUC_ATTRIBUTE" >> $TAIL
+cat "$@" | grep '^Fc[^ ]* *(' | sed -e 's/ *(.*$//' |
 while read name; do
        case $name in
        FcCacheDir|FcCacheSubdir)
@@ -22,3 +23,4 @@ while read name; do
                ;;
        esac
 done
+echo "#endif" >> $TAIL