From: Bruno Haible Date: Mon, 28 Aug 2006 15:12:52 +0000 (+0000) Subject: Better error handling. X-Git-Tag: cvs-readonly~1974 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=adc8728fbdb5f1ad11acf72692bdc1a2c47041c4;p=gnulib.git Better error handling. --- diff --git a/ChangeLog b/ChangeLog index 0fd747ed1..2ebc862f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-08-26 Bruno Haible + + * gnulib-tool (func_verify_module): Check against misapplying patch. + 2006-08-28 Bruno Haible * modules/c-strstr: New file, from GNU gettext. diff --git a/gnulib-tool b/gnulib-tool index 1ce4f5d32..46a8cee65 100755 --- 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 @@ func_verify_module () && 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=