=head1 USAGE
Simply run this script in directory where you want files and/or
-directorires to be renamed.
+directories to be renamed. Directories are not transliterated by
+default, but you can use FORCE_DIR=1 environment variable.
=head1 OVERVIEW
my $src_filename;
if ($#ARGV >= 0) {
- print "torn version $VERSION, Copyright (C) 2007-2020 Sergey Matveev
+ print "torn version $VERSION, Copyright (C) 2007-2021 Sergey Matveev
torn comes with ABSOLUTELY NO WARRANTY. This is free software,
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";
foreach (sort readdir DIR) {
# Skip directory itself
next if /^\.{1,2}$/;
- next if -d;
+ next if -d and not $ENV{FORCE_DIR};
$src_filename = $_;
$src = decode "utf-8", $src_filename;