summaryrefslogtreecommitdiff
path: root/gnulib-tool
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-05-28 10:58:47 +0200
committerSimon Josefsson <simon@josefsson.org>2009-05-28 10:58:47 +0200
commit2b08e890726e2c572d2ba64f19bece957d1bfd98 (patch)
tree39e3a9c907712792b25ed40a022fe5e1faf4b9b7 /gnulib-tool
parent1b4d22d97c89b12231bfbb2527084d11e02a3d5f (diff)
downloadgnulib-2b08e890726e2c572d2ba64f19bece957d1bfd98.tar.gz
gnulib-tool: Transform license on build-aux/ files too.
Diffstat (limited to 'gnulib-tool')
-rwxr-xr-xgnulib-tool19
1 files changed, 19 insertions, 0 deletions
diff --git a/gnulib-tool b/gnulib-tool
index 36ee71400b..c633da21e4 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -2874,6 +2874,17 @@ s,^\(.................................................[^ ]*\) *,
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 @@ s,^\(.................................................[^ ]*\) *,
;;
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/*)