Chris@0: # Chris@0: # libid3tag - ID3 tag manipulation library Chris@0: # Copyright (C) 2000-2004 Underbit Technologies, Inc. Chris@0: # Chris@0: # This program is free software; you can redistribute it and/or modify Chris@0: # it under the terms of the GNU General Public License as published by Chris@0: # the Free Software Foundation; either version 2 of the License, or Chris@0: # (at your option) any later version. Chris@0: # Chris@0: # This program is distributed in the hope that it will be useful, Chris@0: # but WITHOUT ANY WARRANTY; without even the implied warranty of Chris@0: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Chris@0: # GNU General Public License for more details. Chris@0: # Chris@0: # You should have received a copy of the GNU General Public License Chris@0: # along with this program; if not, write to the Free Software Chris@0: # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Chris@0: # Chris@0: # $Id: genre.dat.sed,v 1.10 2004/01/23 09:41:32 rob Exp $ Chris@0: # Chris@0: Chris@0: 1i\ Chris@0: /* Automatically generated from genre.dat.in */ Chris@0: Chris@0: # generate an array from a string Chris@0: /^[A-Za-z]/{ Chris@0: H Chris@0: y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ Chris@0: s/[^A-Z0-9]/_/g Chris@0: s/.*/static id3_ucs4_t const genre_&[] =/p Chris@0: g Chris@0: s/.*\n// Chris@0: s/./'&', /g Chris@0: s/.*/ { &0 };/ Chris@0: } Chris@0: Chris@0: # write the final table of arrays Chris@0: ${ Chris@0: p Chris@0: i\ Chris@0: \ Chris@0: static id3_ucs4_t const *const genre_table[] = { Chris@0: g Chris@0: s/^\(\n\)\(.*\)$/\2\1/ Chris@0: y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ Chris@0: s/[^A-Z0-9\n]/_/g Chris@0: s/\([^\n]*\)\(\n\)/ genre_\1,\2/g Chris@0: s/,\n$// Chris@0: a\ Chris@0: }; Chris@0: } Chris@0: Chris@0: # print the pattern space (assumes -n) Chris@0: p