Chris@0
|
1 #
|
Chris@0
|
2 # libid3tag - ID3 tag manipulation library
|
Chris@0
|
3 # Copyright (C) 2000-2004 Underbit Technologies, Inc.
|
Chris@0
|
4 #
|
Chris@0
|
5 # This program is free software; you can redistribute it and/or modify
|
Chris@0
|
6 # it under the terms of the GNU General Public License as published by
|
Chris@0
|
7 # the Free Software Foundation; either version 2 of the License, or
|
Chris@0
|
8 # (at your option) any later version.
|
Chris@0
|
9 #
|
Chris@0
|
10 # This program is distributed in the hope that it will be useful,
|
Chris@0
|
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
Chris@0
|
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
Chris@0
|
13 # GNU General Public License for more details.
|
Chris@0
|
14 #
|
Chris@0
|
15 # You should have received a copy of the GNU General Public License
|
Chris@0
|
16 # along with this program; if not, write to the Free Software
|
Chris@0
|
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Chris@0
|
18 #
|
Chris@0
|
19 # $Id: genre.dat.sed,v 1.10 2004/01/23 09:41:32 rob Exp $
|
Chris@0
|
20 #
|
Chris@0
|
21
|
Chris@0
|
22 1i\
|
Chris@0
|
23 /* Automatically generated from genre.dat.in */
|
Chris@0
|
24
|
Chris@0
|
25 # generate an array from a string
|
Chris@0
|
26 /^[A-Za-z]/{
|
Chris@0
|
27 H
|
Chris@0
|
28 y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/
|
Chris@0
|
29 s/[^A-Z0-9]/_/g
|
Chris@0
|
30 s/.*/static id3_ucs4_t const genre_&[] =/p
|
Chris@0
|
31 g
|
Chris@0
|
32 s/.*\n//
|
Chris@0
|
33 s/./'&', /g
|
Chris@0
|
34 s/.*/ { &0 };/
|
Chris@0
|
35 }
|
Chris@0
|
36
|
Chris@0
|
37 # write the final table of arrays
|
Chris@0
|
38 ${
|
Chris@0
|
39 p
|
Chris@0
|
40 i\
|
Chris@0
|
41 \
|
Chris@0
|
42 static id3_ucs4_t const *const genre_table[] = {
|
Chris@0
|
43 g
|
Chris@0
|
44 s/^\(\n\)\(.*\)$/\2\1/
|
Chris@0
|
45 y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/
|
Chris@0
|
46 s/[^A-Z0-9\n]/_/g
|
Chris@0
|
47 s/\([^\n]*\)\(\n\)/ genre_\1,\2/g
|
Chris@0
|
48 s/,\n$//
|
Chris@0
|
49 a\
|
Chris@0
|
50 };
|
Chris@0
|
51 }
|
Chris@0
|
52
|
Chris@0
|
53 # print the pattern space (assumes -n)
|
Chris@0
|
54 p
|