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