diff --git a/Changes b/Changes new file mode 100644 index 0000000..76e806f --- /dev/null +++ b/Changes @@ -0,0 +1,6 @@ +Revision history for MP3-Tag-Utils + +0.0.0 2010-08-19/17:00 + -Initial release. + + diff --git a/MANIFEST b/MANIFEST new file mode 100644 index 0000000..a76f135 --- /dev/null +++ b/MANIFEST @@ -0,0 +1,9 @@ +Changes +MANIFEST +Makefile.PL +README +lib/MP3/Tag/Utils.pm +t/00-load.t +t/manifest.t +t/pod-coverage.t +t/pod.t diff --git a/Makefile.PL b/Makefile.PL new file mode 100644 index 0000000..a63c01a --- /dev/null +++ b/Makefile.PL @@ -0,0 +1,22 @@ +use strict; +use warnings; +use ExtUtils::MakeMaker; + +WriteMakefile( + NAME => 'MP3::Tag::Utils', + AUTHOR => q{Zane C. Bowers }, + VERSION_FROM => 'lib/MP3/Tag/Utils.pm', + ABSTRACT_FROM => 'lib/MP3/Tag/Utils.pm', + ($ExtUtils::MakeMaker::VERSION >= 6.3002 + ? ('LICENSE'=> 'perl') + : ()), + PL_FILES => {}, + INST_SCRIPT => 'bin', + PREREQ_PM => { + 'Test::More' => 0, + 'MP3::Tag'=>0, + 'Text::NeatTemplate'=>0, + }, + dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, + clean => { FILES => 'MP3-Tag-Utils-*' }, + ); diff --git a/README b/README new file mode 100644 index 0000000..2e187b0 --- /dev/null +++ b/README @@ -0,0 +1,46 @@ +MP3-Tag-Utils + +Some assorted useful utilities for using MP3::Tag. + + +INSTALLATION + +To install this module, run the following commands: + + perl Makefile.PL + make + make test + make install + +SUPPORT AND DOCUMENTATION + +After installing, you can find documentation for this module with the +perldoc command. + + perldoc MP3::Tag::Utils + +You can also look for information at: + + RT, CPAN's request tracker + http://rt.cpan.org/NoAuth/Bugs.html?Dist=MP3-Tag-Utils + + AnnoCPAN, Annotated CPAN documentation + http://annocpan.org/dist/MP3-Tag-Utils + + CPAN Ratings + http://cpanratings.perl.org/d/MP3-Tag-Utils + + Search CPAN + http://search.cpan.org/dist/MP3-Tag-Utils/ + + +LICENSE AND COPYRIGHT + +Copyright (C) 2010 Zane C. Bowers + +This program is free software; you can redistribute it and/or modify it +under the terms of either: the GNU General Public License as published +by the Free Software Foundation; or the Artistic License. + +See http://dev.perl.org/licenses/ for more information. + diff --git a/bin/mp3rename b/bin/mp3rename new file mode 100755 index 0000000..f9cddf8 --- /dev/null +++ b/bin/mp3rename @@ -0,0 +1,132 @@ +#!/usr/bin/perl +#Copyright (c) 2010, Zane C. Bowers +#All rights reserved. +# +#Redistribution and use in source and binary forms, with or without modification, +#are permitted provided that the following conditions are met: +# +# * Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# +#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +#ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +#WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +#IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +#INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +#BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +#DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +#LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +#OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +#THE POSSIBILITY OF SUCH DAMAGE. + +use strict; +use warnings; +use Getopt::Std; +use MP3::Tag::Utils; + +#version function +sub main::VERSION_MESSAGE { + print "mp3rename 0.0.0\n"; +} + +#print help +sub main::HELP_MESSAGE { + print "\n". + "-t