Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > fceb42de01ee1eb3627750961bfe06d5 > files > 16

vdr-plugin-muggle-0.2.3-1mdv2010.0.i586.rpm

#!/bin/sh

(
	echo "
//autogenerated by `pwd -P`/$0

genres_t genres[] = {"

cat `dirname $0`/genres.txt | while read gdid id3 name
do
	test "$id3" = N && id3=-1
	test "$gdid" = NULL && break
	echo '	{ "'$gdid'", '$id3', "'$name'" },'
done
echo '};
'

echo "lang_t languages[] = {"

`dirname $0`/iso639tab.py `dirname $0`/iso_639.xml |
	grep -v '^#' |
	grep -v '^$' |
	while read iso1 iso2 iso3 name
do
	echo '	{ "'$iso2'", "'$name'" },'
done
echo '};
'

echo "musictypes_t musictypes[] = {"

cat `dirname $0`/musictypes.txt | while read mtype
do
	echo '	{ "'$mtype'"},'
done
echo '};
'

echo "sources_t sources[] = {"

cat `dirname $0`/sources.txt | while read stype
do
	echo '	{ "'$stype'"},'
done
echo '};'
)