1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/bin/sh . `dirname $0`/mime-functions.sh echo_mime () { echo "\"$i\"," } SCHEMES=`grep -v '^#' $1` echo "/* generated with uri-scheme-include.sh, don't edit */" echo "static const gchar *uri_schemes[] = {" for i in $SCHEMES ; do echo_mime; done echo "NULL" echo "};"