For test modules, use the license of the main module.
authorBruno Haible <bruno@clisp.org>
Sun, 14 Jan 2007 23:00:12 +0000 (23:00 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 14 Jan 2007 23:00:12 +0000 (23:00 +0000)
ChangeLog
gnulib-tool

index 633ad49aedc2bf1388ebccc2551404ed734e7d91..8313686426d7741525b6e76b800e9d46503519d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-14  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_get_license): For test modules, use the license of
+       the main module.
+
 2007-01-14  Bruno Haible  <bruno@clisp.org>
 
        * modules/iconv (Include): Clarify that <iconv.h> can only be included
index 147190fda10ad785788a106e14624ba9c30c8d5f..bac9bd9e0f495e586a8f75f3cbfcec1a6c978aaf 100755 (executable)
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2007-01-14 20:45:45 $'
+cvsdatestamp='$Date: 2007-01-14 23:00:12 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 nl='
@@ -1020,7 +1020,9 @@ func_get_include_directive ()
 # - local_gnulib_dir  from --local-dir
 func_get_license ()
 {
-  func_lookup_file "modules/$1"
+  # ${module}-tests always implicitly has the same license as ${module}.
+  sed_drop_tests_suffix='s/-tests$//'
+  func_lookup_file "modules/"`echo "$1" | sed -e "$sed_drop_tests_suffix"`
   sed -n -e "/^License$sed_extract_prog" < "$lookedup_file"
 }