2 # Ian Beckwith <ianb@erislabs.net>
5 use lib '/home/ianb/projects/id3fs/id3fs/lib';
7 use Getopt::Long qw(Configure);
11 $me=($0=~/(?:.*\/)?(.*)/)[0];
18 Configure(qw(bundling no_ignore_case));
19 my $optret=GetOptions(
20 "verbose|v" => \$verbose,
21 "quiet|q" => sub { $verbose=0; },
23 "database|f=s" => \$dbpath,
26 usage() if(scalar(@ARGV) != 2 || !$optret || $help);
31 my $db=ID3FS::DB->new($me, $verbose, 0, $dbpath, $source);
34 my $fuse=ID3FS::Fuse->new($db, $source, $mountpoint, $verbose);
39 die("Usage: $me [-vqh] [-f <dbfile>] [--] <sourcedir> <mountpoint>\n".
41 " -q\t\t\tQuiet (default)\n".
42 " -h\t\t\tThis help\n".
43 " -f|--database=FILE\tPath to database file\n" .
44 " --\t\t\tEnd of options\n");
51 id3fsd - FUSE filesystem for browsing id3 tags
55 B<id3fsd> [B<-vqh>] S<B<[-f >I<dbfile>]> [B<-->] I<SOURCEDIR> I<MOUNTPOINT>
59 id3fsd provides a browsable filesystem of your music files, organised
60 into sub-directories by id3 tags (or flac/ogg comments).
62 An index should first be created with L<id3fs-index(1)>, then id3fsd
63 can mount the files in I<SOURCEDIR> on the directory I<MOUNTPOINT>.
65 If not explicitly specified (with B<-f>), the index is searched for
66 at I<SOURCEDIR>/B<.id3fs>.
68 The resulting filesystem is read-only. Tags appear as directories,
69 and files appear as symlinks to the actual files in I<SOURCEDIR>.
71 FIXME: better description, allow_others/fuse.conf, fstab, explain genre tag
79 Enable verbose operation.
83 Quiet (no output). This is the default.
87 Show a short help message.
89 =item S<B<-f >I<FILE>> | S<B<--database=>I<FILE>>
91 Use database in I<FILE>. The default is I<SOURCEDIR>/B<.id3fs>.
101 To mount an id3fs filesystem which indexes B<~/music/albums> on
104 First create the index:
106 id3fs-index -v ~/music/albums
108 If you have a large collection of music, this may take some time.
110 Then create the mountpoint:
114 and mount the filesystem:
116 id3fsd ~/music/albums ~/music/tags
118 Then explore the tags in ~/music/tags/
124 Please report any found to ianb@erislabs.net
128 L<id3fs-index(1)>, L<http://fuse.sourceforge.net>
132 Ian Beckwith <ianb@erislabs.net>
136 The latest version can be found at:
138 B<http://erislabs.net/ianb/projects/id3fs/>
142 Copyright 2010 Ian Beckwith <ianb@erislabs.net>
144 This program is free software: you can redistribute it and/or modify
145 it under the terms of the GNU General Public License as published by
146 the Free Software Foundation; either version 3 of the License, or
147 (at your option) any later version.
149 This program is distributed in the hope that it will be useful,
150 but WITHOUT ANY WARRANTY; without even the implied warranty of
151 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
152 GNU General Public License for more details.
154 You should have received a copy of the GNU General Public License
155 along with this program. If not, see <http://www.gnu.org/licenses/>.