- Timestamp:
- 05/21/06 05:17:23 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/mp3db
r23 r29 13 13 $DB_FILE ||= catfile($ENV{HOME}, 'mp3.db'); 14 14 15 my @ DIRS = @ARGV;15 my @NAMES = @ARGV; 16 16 17 17 my $f = MP3::Find::DB->new; 18 18 $f->create_db($DB_FILE) if $CREATE; 19 $f->update_db($DB_FILE, \@DIRS) if @DIRS; 19 20 if (@NAMES) { 21 my @files = grep { -f } @NAMES; 22 my @dirs = grep { -d } @NAMES; 23 24 $f->update({ 25 dsn => "dbi:SQLite:dbname=$DB_FILE", 26 dirs => \@dirs, 27 files => \@files, 28 }); 29 } 20 30 21 31 =head1 NAME
Note: See TracChangeset
for help on using the changeset viewer.