.
authorJim Meyering <jim@meyering.net>
Sun, 15 Dec 1996 22:17:29 +0000 (22:17 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 15 Dec 1996 22:17:29 +0000 (22:17 +0000)
tests/cut/mk-script.pl
tests/head/mk-script.pl
tests/join/mk-script.pl
tests/ls/mk-script.pl

index bcff12c..0a87785 100644 (file)
@@ -52,7 +52,8 @@ sub spec_to_list ($$$)
   my $file_contents;
   foreach $file_contents (@content_string)
     {
-      my $gen_file = "t$test_name.$type$i";
+      my $suffix = (@content_string > 1 ? $i : '');
+      my $gen_file = "t$test_name.$type$suffix";
       push (@all_file, $gen_file);
       push (@gen_file, $gen_file);
       open (F, ">$gen_file") || die "$0: $gen_file: $!\n";
index bcff12c..0a87785 100644 (file)
@@ -52,7 +52,8 @@ sub spec_to_list ($$$)
   my $file_contents;
   foreach $file_contents (@content_string)
     {
-      my $gen_file = "t$test_name.$type$i";
+      my $suffix = (@content_string > 1 ? $i : '');
+      my $gen_file = "t$test_name.$type$suffix";
       push (@all_file, $gen_file);
       push (@gen_file, $gen_file);
       open (F, ">$gen_file") || die "$0: $gen_file: $!\n";
index bcff12c..0a87785 100644 (file)
@@ -52,7 +52,8 @@ sub spec_to_list ($$$)
   my $file_contents;
   foreach $file_contents (@content_string)
     {
-      my $gen_file = "t$test_name.$type$i";
+      my $suffix = (@content_string > 1 ? $i : '');
+      my $gen_file = "t$test_name.$type$suffix";
       push (@all_file, $gen_file);
       push (@gen_file, $gen_file);
       open (F, ">$gen_file") || die "$0: $gen_file: $!\n";
index bcff12c..0a87785 100644 (file)
@@ -52,7 +52,8 @@ sub spec_to_list ($$$)
   my $file_contents;
   foreach $file_contents (@content_string)
     {
-      my $gen_file = "t$test_name.$type$i";
+      my $suffix = (@content_string > 1 ? $i : '');
+      my $gen_file = "t$test_name.$type$suffix";
       push (@all_file, $gen_file);
       push (@gen_file, $gen_file);
       open (F, ">$gen_file") || die "$0: $gen_file: $!\n";