__________ __ ___. Open \______ \ ____ ____ | | _\_ |__ _______ ___ Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ \/ \/ \/ \/ \/ $Id$ Copyright (C) 2009 Yoshihisa Uchida This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. ========================================================================== songdb Create the song database (database_*.tcd) application. ================================================= Usage ================================================= songdb -r|--root-path -m|--mode [-d|--rockbox-directory ] [-s|--song-directory ] [-c|--codepage ] [-h|--help] [-V|--version] -r|--root-path Rockbox root directory. / and //codepages/*.cp should exist. When songdb is used on Windows, the drive letter is written Windows style (such as "C:/path/of/root"). Song database (database_*.tcd) is build for / directory. -m|--mode create: build database newly. update: update database. commit: commit database. append: append non registered files. It is not checked whether the file registered in the database has been deleted. -d|--rockbox-directory Rockbox directory. If this option is not given, then Rockbox directory is ".rockbox". -s|--song-directory song storage directory. If begins with a "/", then it looks for the song file from /. If does not begin with a "/", then it looks for the song file from /. If this option is not given, then = "/". When using songdb on MinGW+MSYS shell, it should be set not /hoge but //hoge. -c|--codepage metadata codepage. If this option is not given, then metadata codepage is "UTF-8". codepage list option value codepage ----------------------------------------------- ISO-8859-1 Latin1 (ISO-8859-1) ISO-8859-2 Latin Extended (ISO-8859-2) ISO-8859-7 Greek (ISO-8859-7) ISO-8859-8 Hebrew (ISO-8859-8) ISO-8859-9 Turkish (ISO-8859-9) ISO-8859-11 Thai (ISO-8859-11) CP1250 Central European (CP1250) CP1251 Cyrillic (CP1251) CP1256 Arabic (CP1256) SJIS Japanese (SJIS) GB-2312 Simple Chinese (GB2312) KSX-1001 Korean (KSX1001) BIG-5 Traditional Chinese (BIG5) UTF-8 Unicode (UTF-8) -h|--help show help message and exit. -V|--version show version information and exit. ================================================= Requirement ================================================= OS 1) Windows - Cygwin or MinGW (with MSYS) must be installed. 2) Linux Other OS do not checked. When songdb does not use SDL library, SDL library may not be installed. ================================================= Build ================================================= 1) edit Makefile (gcc options) 2) make ================================================= TODO ================================================= 1) The folder of song database can be freely set. 2) Fix build warning.