X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=torn;h=2fe88def679854e774c3a5b9f1d3e1fdd4f19af2;hb=e0426fa5f2c74f2678bf328181e3f97300b549fa;hp=2a6a3d56ff701b4e89a81d04a4c50b89e0323437;hpb=36d4ac86c8bc71db719e9b1460b12643b4088f6a;p=torn.git diff --git a/torn b/torn index 2a6a3d5..2fe88de 100755 --- a/torn +++ b/torn @@ -1,6 +1,6 @@ #!/usr/bin/env perl # torn - Musical files renaming with russian language transliteration -# Copyright (C) 2007-2019 Sergey Matveev (stargrave@stargrave.org) +# Copyright (C) 2007-2020 Sergey Matveev (stargrave@stargrave.org) # # 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 @@ -10,7 +10,7 @@ # 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, see . @@ -65,9 +65,12 @@ my $src; my $dst; my $src_filename; -print "torn version $VERSION, Copyright (C) 2007-2019 Sergey Matveev +if ($#ARGV >= 0) { + print "torn version $VERSION, Copyright (C) 2007-2020 Sergey Matveev torn comes with ABSOLUTELY NO WARRANTY. This is free software, -and you are welcome to redistribute it under certain conditions.\n\n"; +and you are welcome to redistribute it under certain conditions.\n +Usage: just run inside the directory. Look for POD inside the script itself.\n"; +}; opendir DIR, "." or die "Can not open directory\n"; foreach (sort readdir DIR) {