annotate src/libid3tag-0.15.1b/genre.dat.sed @ 169:223a55898ab9 tip default

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