# HG changeset patch # User Simon Josefsson # Date 1243501127 -7200 # Node ID 476a58fbc9b955b635fd776ce51ff5be383a90c1 # Parent 345504ca672ee17807d0ca8c2ffdc28a1c78d60f gnulib-tool: Transform license on build-aux/ files too. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-05-28 Simon Josefsson + + * gnulib-tool: Transform license on build-aux/ files too. + 2009-05-27 Simon Josefsson * gnulib-tool (sed_transform_main_lib_file) diff --git a/gnulib-tool b/gnulib-tool --- a/gnulib-tool +++ b/gnulib-tool @@ -2874,6 +2874,17 @@ fi fi + # Determine script to apply to auxilliary files that go into $auxdir/. + sed_transform_build_aux_file="$sed_transform_lib_file" + if test -n "$do_copyrights"; then + # Update license. + sed_transform_build_aux_file=$sed_transform_build_aux_file' + s/GNU Lesser General/GNU General/g + s/GNU Library General/GNU General/g + s/version 2\(.1\)\{0,1\}\([ ,]\)/version 3\2/g + ' + fi + # Determine script to apply to library files that go into $testsbase/. sed_transform_testsrelated_lib_file="$sed_transform_lib_file" if test -n "$do_copyrights"; then @@ -3025,6 +3036,14 @@ ;; esac fi + if test -n "$sed_transform_build_aux_file"; then + case "$of" in + build-aux/*) + sed -e "$sed_transform_build_aux_file" \ + < "$lookedup_file" > "$tmpfile" || func_fatal_error "failed" + ;; + esac + fi if test -n "$sed_transform_testsrelated_lib_file"; then case "$of" in tests=lib/*)