summaryrefslogtreecommitdiff
path: root/data/uri-scheme-include.sh
blob: 6902a3a9d88357bdd19b2f713ca26f9ce632dc05 (plain)
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 "};"