From: Bruno Haible Date: Fri, 13 Jul 2007 01:16:59 +0000 (+0000) Subject: Handle copying terms "GPLv2+" and "LGPLv2+". X-Git-Tag: cvs-readonly~128 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=26ee7e21ec9fc67984f5e06dd71ab66dfc9b994d;p=gnulib.git Handle copying terms "GPLv2+" and "LGPLv2+". --- diff --git a/ChangeLog b/ChangeLog index b060d492d..9395cc35a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-13 Bruno Haible + + * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL. + (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+". + 2007-07-12 Bruno Haible * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations diff --git a/gnulib-tool b/gnulib-tool index 39dad780f..c9029ca0b 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -22,7 +22,7 @@ progname=$0 package=gnulib -cvsdatestamp='$Date: 2007-07-10 12:25:38 $' +cvsdatestamp='$Date: 2007-07-13 01:17:00 $' last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'` version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'` nl=' @@ -1940,7 +1940,7 @@ func_import () for module in $modules; do license=`func_get_license $module` case $license in - LGPL | 'GPLed build tool') ;; + LGPL | LGPLv2+ | 'GPLed build tool') ;; 'public domain' | 'unlimited' | 'unmodifiable license text') ;; *) func_fatal_error "incompatible license on module $module: $license" ;; esac @@ -2655,10 +2655,31 @@ func_create_testdir () func_modules_transitive_closure for module in $modules; do license=`func_get_license "$module"` - case $license in - LGPL | 'GPLed build tool') ;; + case "$license" in + 'GPLed build tool') ;; 'public domain' | 'unlimited' | 'unmodifiable license text') ;; - *) echo "warning: module $requested_module depends on a module with an incompatible license: $module" 1>&2 ;; + *) + case "$requested_license" in + GPLv2+) + case "$license" in + GPLv2+ | LGPLv2+) ;; + *) echo "warning: module $requested_module depends on a module with an incompatible license: $module" 1>&2 ;; + esac + ;; + LGPL) + case "$license" in + LGPL | LGPLv2+) ;; + *) echo "warning: module $requested_module depends on a module with an incompatible license: $module" 1>&2 ;; + esac + ;; + LGPLv2+) + case "$license" in + LGPLv2+) ;; + *) echo "warning: module $requested_module depends on a module with an incompatible license: $module" 1>&2 ;; + esac + ;; + esac + ;; esac done fi