texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[5238] use $0 in diagnostics


From: karl
Subject: [5238] use $0 in diagnostics
Date: Thu, 14 Mar 2013 23:22:02 +0000

Revision: 5238
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5238
Author:   karl
Date:     2013-03-14 23:22:01 +0000 (Thu, 14 Mar 2013)
Log Message:
-----------
use $0 in diagnostics

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/tp/maintain/regenerate_cmd_tests.sh
    trunk/tp/tests/many_input_files/tex_l2h.sh
    trunk/tp/tests/run_parser_all.sh

Property Changed:
----------------
    trunk/tp/tests/run_parser_all.sh

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2013-03-14 16:05:37 UTC (rev 5237)
+++ trunk/ChangeLog     2013-03-14 23:22:01 UTC (rev 5238)
@@ -1,5 +1,9 @@
 2013-03-14  Karl Berry  <address@hidden>
 
+       * maintain/regenerate_cmd_tests.sh,
+       * tests/run_parser_all.sh,
+       * tests/many_input_files/tex_l2h.sh: use $0 in some diagnostics.
+
        * NEWS: mention switch from cvs to svn.
        * doc/texinfo.txi (Invoking @t{pod2texi}): svn url instead of cvs
        for Perl manual in Texinfo.

Modified: trunk/tp/maintain/regenerate_cmd_tests.sh
===================================================================
--- trunk/tp/maintain/regenerate_cmd_tests.sh   2013-03-14 16:05:37 UTC (rev 
5237)
+++ trunk/tp/maintain/regenerate_cmd_tests.sh   2013-03-14 23:22:01 UTC (rev 
5238)
@@ -1,8 +1,8 @@
 #! /bin/sh
-# regenerate_cmd_tests.sh: use information from test driving files to
-# regenerate test scripts that run only one test, and files lists to be
-# use in Makefiles.
 # $Id$
+# Use information from test driving files to regenerate test scripts
+# that run only one test, and file lists to be use in Makefiles.
+#
 # Copyright 2013 Free Software Foundation, Inc.
 #
 # This file is free software; as a special exception the author gives
@@ -34,7 +34,7 @@
   elif test z"$1" = 'z-tex_html'; then
     tex_html_test_dirs=$2
   else
-    echo "Bad args" 1>&2
+    echo "$0: Bad args" 1>&2
     exit 1
   fi
   shift
@@ -129,7 +129,7 @@
     chmod 0755 $one_test_file
     done < $driving_file
   else
-    echo "Missing file $driving_file" 1>&2
+    echo "$0: Missing file $driving_file" 1>&2
     exit 1
   fi
 done

Modified: trunk/tp/tests/many_input_files/tex_l2h.sh
===================================================================
--- trunk/tp/tests/many_input_files/tex_l2h.sh  2013-03-14 16:05:37 UTC (rev 
5237)
+++ trunk/tp/tests/many_input_files/tex_l2h.sh  2013-03-14 23:22:01 UTC (rev 
5238)
@@ -1,7 +1,19 @@
 #! /bin/sh
+#
+# Copyright 2012, 2013 Free Software Foundation, Inc.
+#
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+#
+# Originally written by Patrice Dumas.
 
 if test "z$TEX_HTML_TESTS" != z'yes'; then
-  echo "Skipping HTML TeX tests that are not easily reproducible"
+  echo "Skipping HTML TeX tests that are not easily reproducible ($0)"
   exit 77
 fi
 
@@ -31,7 +43,7 @@
 
 tmp_dir=`mktemp -d l2h_t2h_XXXXXXXX`
 if test z"$tmp_dir" = 'z' ; then
-  echo "mktemp failed" 1>&2
+  echo "$0: mktemp failed" 1>&2
   exit 1
 fi
 

Modified: trunk/tp/tests/run_parser_all.sh
===================================================================
--- trunk/tp/tests/run_parser_all.sh    2013-03-14 16:05:37 UTC (rev 5237)
+++ trunk/tp/tests/run_parser_all.sh    2013-03-14 23:22:01 UTC (rev 5238)
@@ -1,5 +1,8 @@
 #! /bin/sh
-# Copyright 2010, 2011, 2012 Free Software Foundation, Inc.
+# $Id$
+# Run all Texinfo tests.
+# 
+# Copyright 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
 #
 # Copying and distribution of this file, with or without modification,
 # are permitted in any medium without royalty provided the copyright
@@ -100,7 +103,7 @@
 if [ -f "$driving_file" ]; then
   :
 else
-  echo "Cannot find test driving file $driving_file" 1>&2
+  echo "$0: Cannot find test driving file $driving_file" 1>&2
   exit 1
 fi
 
@@ -151,7 +154,7 @@
           fi
           cp -r "${outdir}$dir/"* "${resdir}$dir/"
         else
-          echo "No dir ${outdir}$dir" 1>&2
+          echo "$0: No dir ${outdir}$dir" 1>&2
         fi
       done
     fi
@@ -260,7 +263,7 @@
         if test z"$tmp_dir" = 'z'; then
            tmp_dir=`mktemp -d l2h_t2h_XXXXXXXX`
            if test z"$tmp_dir" = 'z'; then
-             echo "mktemp failed" 1>&2
+             echo "$0: mktemp failed" 1>&2
              exit 1
            fi
         fi


Property changes on: trunk/tp/tests/run_parser_all.sh
___________________________________________________________________
Added: svn:keywords
   + Date Author Id




reply via email to

[Prev in Thread] Current Thread [Next in Thread]