Test module descriptions don't have a license statement of their own.
When "gnulib-tool --create-testdir --with-tests" is used, it emits a
warning:

warning: module iconv depends on a module with an incompatible license: 
iconv-tests

This fixes it.

2007-01-14  Bruno Haible  <[EMAIL PROTECTED]>

        * gnulib-tool (func_get_license): For test modules, use the license of
        the main module.

*** gnulib-tool 14 Jan 2007 20:45:45 -0000      1.214
--- gnulib-tool 14 Jan 2007 22:58:08 -0000
***************
*** 1020,1026 ****
  # - local_gnulib_dir  from --local-dir
  func_get_license ()
  {
!   func_lookup_file "modules/$1"
    sed -n -e "/^License$sed_extract_prog" < "$lookedup_file"
  }
  
--- 1020,1028 ----
  # - local_gnulib_dir  from --local-dir
  func_get_license ()
  {
!   # ${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"
  }
  



Reply via email to