blob: f7fcc8943bef8dc6a482f63544a65ef9126d04f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
(
echo "
//autogenerated by `pwd -P`/$0
genres_t genres[] = {"
cat scripts/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[] = {"
scripts/iso639tab.py scripts/iso_639.xml |
grep -v '^#' |
grep -v '^$' |
while read iso1 iso2 iso3 name
do
echo ' { "'$iso2'", "'$name'" },'
done
echo '};
'
echo "musictypes_t musictypes[] = {"
cat scripts/musictypes.txt | while read mtype
do
echo ' { "'$mtype'"},'
done
echo '};
'
echo "sources_t sources[] = {"
cat scripts/sources.txt | while read stype
do
echo ' { "'$stype'"},'
done
echo '};'
) >mg_tables.h
|