changeset 7212:232ee448d272

Better error handling.
author Bruno Haible <bruno@clisp.org>
date Mon, 28 Aug 2006 15:12:52 +0000
parents 11f1d00cce73
children 0f2957c42e86
files ChangeLog gnulib-tool
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-08-26  Bruno Haible  <bruno@clisp.org>
+
+	* gnulib-tool (func_verify_module): Check against misapplying patch.
+
 2006-08-28  Bruno Haible  <bruno@clisp.org>
 
 	* modules/c-strstr: New file, from GNU gettext.
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2006-08-26 06:39:32 $'
+cvsdatestamp='$Date: 2006-08-28 15:12:52 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -642,7 +642,8 @@
      && test "TEMPLATE" != "$module" \
      && test "TEMPLATE-TESTS" != "$module"; then
     # OK, $module is a correct module name.
-    :
+    # Verify that building the module description with 'patch' succeeds.
+    func_lookup_file "modules/$module"
   else
     echo "gnulib-tool: module $module doesn't exist" 1>&2
     module=