bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnulib-tool: license of tests modules


From: Bruno Haible
Subject: gnulib-tool: license of tests modules
Date: Sun, 14 Jan 2007 23:59:03 +0100 (MET)
User-agent: KMail/1.5.4

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  <address@hidden>

        * 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

[Prev in Thread] Current Thread [Next in Thread]