From 0be67fcf95573bf3966dad63fdc7b3e85a560f42 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 6 Jan 2012 19:53:23 +0100 Subject: man --- videodb.rc | 8 +++--- videomv.pl | 90 +++++++++++++++++++++++++++++++++++++++++++++----------------- 2 files changed, 70 insertions(+), 28 deletions(-) diff --git a/videodb.rc b/videodb.rc index dad2f22..198b60a 100644 --- a/videodb.rc +++ b/videodb.rc @@ -1,7 +1,7 @@ -######################################################################### -# This is a sample configuration file for video-*. Extend it and rename # -# it to `~/.videodb.rc' # -######################################################################### +######################################################################## +# This is a sample configuration file for video*. Extend it and rename # +# it to `~/.videodb.rc' # +######################################################################## videodir => catdir($HOME,'video'), driver => 'mysql', diff --git a/videomv.pl b/videomv.pl index 1d192c8..d579f9a 100755 --- a/videomv.pl +++ b/videomv.pl @@ -42,7 +42,7 @@ die "Error: No such directory: `" .$directors. "'.\n" unless -d $symlinks; =head1 NAME -videomv.pl - Move your videos to or within your collection. +videomv.pl - move your videos to or within your collection =head1 SYNOPSIS @@ -52,7 +52,7 @@ I [{I,I}I[I]] =head1 DESCRIPTION Your collection is assumed to have the following structure: two -folders, here I and I that have the same parent. +folders, I and I, that have the same parent. I contains one subdirectory for each director, and each movie lies (B) in the subdirectory of its director. The folder I contains symlinks - one for each movie - that target @@ -91,15 +91,22 @@ actions will be performed: =over 4 +=item * -=item * The old target will be renamed to I, +The old target will be renamed to I, -=item * the old symlink will be deleted, +=item * -=item * a new symlink I -> I<../DIRECTORS/director/newfile> +The old symlink will be deleted, + +=item * + +A new symlink I -> I<../DIRECTORS/director/newfile> will be created, and -=item * the filename in the database will be updated. +=item * + +The filename in the database will be updated. =back @@ -118,16 +125,24 @@ Otherwise, the following actions will be performed: =over 4 -=item * The old target will be moved to I, +=item * + +The old target will be moved to I, (or to I if I was not given), -=item * the old symlink will be deleted, +=item * + +The old symlink will be deleted, -=item * a new symlink I -> I<../DIRECTORS/newdirector/newfile> +=item * + +A new symlink I -> I<../DIRECTORS/newdirector/newfile> (or -> I<../DIRECTORS/newdirector/oldfile> if I was not given) will be created, and -=item * the filename in the database will be updated unless I=I. +=item * + +The filename in the database will be updated unless I=I. =back @@ -141,15 +156,23 @@ actions will be performed: =over 4 -=item * The old target I will be renamed to +=item * + +The old target I will be renamed to I, -=item * the old symlink will be deleted, +=item * + +The old symlink will be deleted, + +=item * -=item * a new symlink I -> I<../DIRECTORS/director/newfile> +A new symlink I -> I<../DIRECTORS/director/newfile> will be created, and -=item * the filename in the database will be updated. +=item * + +The filename in the database will be updated. =back @@ -168,15 +191,23 @@ Otherwise, the following actions will be performed: =over 4 -=item * The old target I<../DIRECTORS/olddirector/oldfile> will be moved to +=item * + +The old target I<../DIRECTORS/olddirector/oldfile> will be moved to I<../DIRECTORS/newdirector/newfile>, -=item * the old symlink will be deleted, +=item * + +The old symlink will be deleted, -=item * a new symlink I -> I<../DIRECTORS/newdirector/newfile> +=item * + +A new symlink I -> I<../DIRECTORS/newdirector/newfile> will be created, and -=item * the filename in the database will be updated unless I=I. +=item * + +The filename in the database will be updated unless I=I. =back @@ -191,14 +222,20 @@ In case of success, the following actions will be performed: =over 4 -=item * I will be moved to I +=item * + +I will be moved to I (or to I if I was not given), -=item * a symlink I -> I<../DIRECTORS/director/newfile> +=item * + +A symlink I -> I<../DIRECTORS/director/newfile> (or I -> I<../DIRECTORS/director/oldfile> if I was not given) will be created, and -=item * the filename in the database will be updated unless I=I. +=item * + +The filename in the database will be updated unless I=I. =back @@ -214,15 +251,20 @@ The following actions will be performed: =over 4 -=item * I will be moved to I +=item * + +I will be moved to I (or to I if I was not given), -=item * a symlink I -> I<../DIRECTORS/director/newfile> +=item * + +A symlink I -> I<../DIRECTORS/director/newfile> (or I -> I<../DIRECTORS/director/oldfile> if the second argument was not given) will be created, -=item * the filename in the database will be updated unless I=I. +=item * +The filename in the database will be updated unless I=I. =back -- cgit v1.2.3