File: uri-scheme-include.sh

package info (click to toggle)
totem 43.2-9
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,496 kB
  • sloc: ansic: 30,058; python: 964; makefile: 228; xml: 221; sh: 157
file content (19 lines) | stat: -rwxr-xr-x 277 bytes parent folder | download | duplicates (8)
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 "};"