changeset 5346:40f5d74050d5

Use func_get_license.
author Bruno Haible <bruno@clisp.org>
date Fri, 15 Oct 2004 15:32:25 +0000
parents 8394c9bf619f
children 0318c37925dc
files ChangeLog gnulib-tool
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,7 +2,8 @@
 
 	* gnulib-tool: Untabify. Initialize supplied_libname.
 	(func_usage): More homogenous output.
-	(func_import): New function, extracted from big case statement.
+	(func_import): New function, extracted from big case statement. Use
+	func_get_license.
 
 2004-10-11  Bruno Haible  <bruno@clisp.org>
 
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2004-10-15 15:28:43 $'
+cvsdatestamp='$Date: 2004-10-15 15:32:25 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -397,7 +397,7 @@
   # If --lgpl, check the license of modules are compatible.
   if test -n "$lgpl"; then
     for module in $modules; do
-      license=`sed -n -e "/^License$sed_extract_prog" < "$gnulib_dir/modules/$module"`
+      license=`func_get_license $module`
       if test $license != LGPL; then
         func_fatal_error "incompatible license on module \`$module\`: $license"
       fi