From f1ebe91895265253a92612eda89900a29e8a4a01 Mon Sep 17 00:00:00 2001 From: Antoine Jacquet Date: Sat, 1 May 2004 00:00:00 +0200 Subject: [PATCH] version 0.21 * manpage was added (thank you Thomas Kappler) --- CHANGELOG | 15 ++++++++++++ Makefile | 7 ++++-- README | 2 +- fapg.1 | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ fapg.c | 28 +++++++++++++++++++--- 5 files changed, 115 insertions(+), 6 deletions(-) create mode 100644 CHANGELOG create mode 100644 fapg.1 diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..0a4b8e5 --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,15 @@ +Change log file for fapg + +version 0.21 (2004-05-01) + * manpage was added (thank you Thomas Kappler) + +version 0.2 (2004-02-14) + * more compatible with ID3 headers (some bug fixes) + * faster to parse MP3 files (nicer buffering) + * end of line are in DOS format when using the --windows flag (thank you Lukasz Wiechec) + +version 0.1 (2003-10-05) + * initial release + +version 0.0 (2003-10-01) + * beta pre-release \ No newline at end of file diff --git a/Makefile b/Makefile index 7dbdd60..2949454 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ PRE = /usr/local BIN = $(PRE)/bin -DOC = $(PRE)/doc/fapg +DOC = $(PRE)/share/doc/fapg +MAN = $(PRE)/share/man/man1 fapg:fapg.c gcc -o fapg fapg.c @@ -9,10 +10,12 @@ clean: rm -f fapg install:fapg - mkdir -p $(BIN) $(DOC) + mkdir -p $(BIN) $(DOC) $(MAN) cp -f fapg $(BIN) cp -f COPYING README $(DOC) + cp -f fapg.1 $(MAN) uninstall: rm -f $(BIN)/fapg rm -rf $(DOC) + rm -f $(MAN)/fapg.1 diff --git a/README b/README index 29bec50..64966e0 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -FAPG 0.2 (Fast Audio Playlist Generator) +FAPG 0.21 (Fast Audio Playlist Generator) site: http://royale.zerezo.com/fapg/ mail: royale@zerezo.com diff --git a/fapg.1 b/fapg.1 new file mode 100644 index 0000000..096ddcf --- /dev/null +++ b/fapg.1 @@ -0,0 +1,69 @@ +.\" Process this file with +.\" groff -man -Tascii foo.1 +.\" +.TH FAPG 1 "APRIL 2004" Linux "User Manuals" + +.SH NAME +fapg \- Fast Audio Playlist Generator + +.SH SYNOPSIS +.B fapg [-b|--backslash] [-d|--debug] [-f|--format=m3u|pls|html] [-o|--output= +.I /path/to/file.m3u +.B ] [-p|--prefix= +.I /the/prefix +.B ] [-r|--recursive] [-w|--windows] +.I /path/to/mp3/dir1 +.B [ +.I /path/to/mp3/dir2 +.B ...] + +.SH DESCRIPTION +.B fapg +is a tool to generate list of audio files (Wav, MP3, Ogg, etc) in various +formats (M3U, PLS, HTML, etc). It is very useful if you have a large amount +of audio files and you want to quickly and frequently build a playlist. +.P +It is coded in C to be as fast as possible, and does not use any specific +audio library (like ID3Lib). This allow you to deploy it faster and easier, +and to have better performances since the less informations are loaded. +On the other hand, this tool is not (yet) compatible with all the known +formats. + +.SH OPTIONS +.IP -b|--backslash +Replace the '/' with '\' in Unix path. +.IP -d|--debug +Display useful messages if the program fails ;) +.IP -f|--format=m3u|pls|html +Choose which format of playlist you want to generate (default is m3u). +.IP -o|--output=/path/to/file.m3u +Choose the name of the playlist file to generate (default behavior is +to display on standard output). +.IP -p|--prefix=/the/prefix +Replace the Unix path with another string (useful to give a Samba path +for example). +.IP -r|--recursive +Recursively read the subdirectories. +.IP -w|--windows +Replace all Unix characters with Windows characters. + +.SH EXAMPLES +Generate a PLS playlist for an album: +.B fapg --format=pls --output=~/path/to/album/list.pls ~/path/to/album + +You have a file server using Samba which shares a large amount of +audio files for Windows powered computers using Winamp. The directory +on the server containing the files is +.I /samba/mp3 +and is visible on the Windows network as +.I \\\\\\\server\\\mp3 +: +.B fapg --backslash --output=/samba/mp3/list.m3u --prefix='\\server\mp3\' --recursive --windows /samba/mp3 + +An HTML playlist for an album: +.B fapg --output=fapg.html ~/path/to/album + + +.SH AUTHOR +Antoine Jacquet , http://royale.zerezo.com/fapg/. +Manpage by Thomas Kappler . diff --git a/fapg.c b/fapg.c index 9e6063a..adf89ee 100644 --- a/fapg.c +++ b/fapg.c @@ -1,6 +1,28 @@ /* - * FAPG 0.2 released under GPL + * FAPG version 0.21 + * + * FAPG means Fast Audio Playlist Generator. + * It is a tool to generate list of audio files (Wav, MP3, Ogg, etc) + * in various formats (M3U, PLS, HTML, etc). + * It is very usefull if you have a large amount of audio files + * and you want to quickly and frequently build a playlist. + * + * Copyright (C) 2003-2004 Antoine Jacquet * http://royale.zerezo.com/fapg/ + * + * 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 program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include @@ -372,7 +394,7 @@ int main(int argc,char **argv) printf("[playlist]%s,eol"); break; case 2: - printf("%s%s%s%s%sPlaylist generated by FAPG 0.2%s%s%s%s%s%s%s

Playlist

%s%s%s%s",eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol); + printf("%s%s%s%s%sPlaylist generated by FAPG 0.21%s%s%s%s%s%s%s

Playlist

%s%s
EntryArtistTitleLength
%s%s",eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol,eol); break; } for (;optind%s%s

Playlist generated by FAPG 0.2

%s%s%s%s",eol,eol,eol,eol,eol,eol); + printf("
EntryArtistTitleLength
%s%s

Playlist generated by FAPG 0.21

%s%s%s%s",eol,eol,eol,eol,eol,eol); break; } exit(0); -- 2.20.1