]> git.sur5r.net Git - bacula/docs/commitdiff
Changed to not try to make meaningful filenames for internally-generated
authorKarl Cunningham <karlec@users.sourceforge.net>
Sun, 24 Jul 2005 14:47:14 +0000 (14:47 +0000)
committerKarl Cunningham <karlec@users.sourceforge.net>
Sun, 24 Jul 2005 14:47:14 +0000 (14:47 +0000)
  images (math, superscripts, etc).

docs/developers/translate_images.pl
docs/manual-de/translate_images.pl
docs/manual-fr/translate_images.pl
docs/manual/translate_images.pl

index c4e7bf2c02c0b97554afc765cd08dd444fd3944a..c7225118df6e8e5ca1cd2f0d8658b601a3961011 100755 (executable)
@@ -128,8 +128,12 @@ sub rename_images {
        my ($response);
 
        foreach (keys(%$translate)) {
-               $response = `mv -f $path$_ $path$translate->{$_} 2>&1`;
-               $response and print "ERROR from system    $response\n";
+               if (! $translate->{$_}) {
+                       print "    WARNING: No destination Filename for $_\n";
+               } else {
+                       $response = `mv -f $path$_ $path$translate->{$_} 2>&1`;
+                       $response and print "ERROR from system    $response\n";
+               }
        }
 }
 
index c4e7bf2c02c0b97554afc765cd08dd444fd3944a..c7225118df6e8e5ca1cd2f0d8658b601a3961011 100755 (executable)
@@ -128,8 +128,12 @@ sub rename_images {
        my ($response);
 
        foreach (keys(%$translate)) {
-               $response = `mv -f $path$_ $path$translate->{$_} 2>&1`;
-               $response and print "ERROR from system    $response\n";
+               if (! $translate->{$_}) {
+                       print "    WARNING: No destination Filename for $_\n";
+               } else {
+                       $response = `mv -f $path$_ $path$translate->{$_} 2>&1`;
+                       $response and print "ERROR from system    $response\n";
+               }
        }
 }
 
index c4e7bf2c02c0b97554afc765cd08dd444fd3944a..c7225118df6e8e5ca1cd2f0d8658b601a3961011 100755 (executable)
@@ -128,8 +128,12 @@ sub rename_images {
        my ($response);
 
        foreach (keys(%$translate)) {
-               $response = `mv -f $path$_ $path$translate->{$_} 2>&1`;
-               $response and print "ERROR from system    $response\n";
+               if (! $translate->{$_}) {
+                       print "    WARNING: No destination Filename for $_\n";
+               } else {
+                       $response = `mv -f $path$_ $path$translate->{$_} 2>&1`;
+                       $response and print "ERROR from system    $response\n";
+               }
        }
 }
 
index c4e7bf2c02c0b97554afc765cd08dd444fd3944a..c7225118df6e8e5ca1cd2f0d8658b601a3961011 100755 (executable)
@@ -128,8 +128,12 @@ sub rename_images {
        my ($response);
 
        foreach (keys(%$translate)) {
-               $response = `mv -f $path$_ $path$translate->{$_} 2>&1`;
-               $response and print "ERROR from system    $response\n";
+               if (! $translate->{$_}) {
+                       print "    WARNING: No destination Filename for $_\n";
+               } else {
+                       $response = `mv -f $path$_ $path$translate->{$_} 2>&1`;
+                       $response and print "ERROR from system    $response\n";
+               }
        }
 }