Mercurial > hg > octave-kai > gnulib-hg
changeset 9807:24b7b77b3295
Install files from top/ in the destination directory.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 23 Mar 2008 14:28:03 +0100 |
parents | 88f73fbd046d |
children | b5b092e3f5c7 |
files | ChangeLog gnulib-tool |
diffstat | 2 files changed, 26 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-03-23 Eric Blake <ebb9@byu.net> + Bruno Haible <bruno@clisp.org> + + Install files from top/ in the destination directory. + * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST + augmentation also for the files from top/. + (func_import, func_create_testdir): Rewrite file names: + top/filename -> filename. + 2008-03-23 Bruno Haible <bruno@clisp.org> Tweak "gnulib --version" output.
--- a/gnulib-tool +++ b/gnulib-tool @@ -1370,6 +1370,17 @@ echo "EXTRA_DIST += "`echo "$buildaux_files" | sed -e "$sed_prepend_auxdir"` echo fi + # Synthesize an EXTRA_DIST augmentation also for the files from top/. + top_files=`for f in $all_files; do \ + case $f in \ + top/*) echo $f ;; \ + esac; \ + done | sed -e 's,^top/,,'` + if test -n "$top_files"; then + sed_prepend_topdir='s,^,$(top_srcdir)/,' + echo "EXTRA_DIST += "`echo "$top_files" | sed -e "$sed_prepend_topdir"` + echo + fi ;; esac } @@ -2505,14 +2516,16 @@ s,^lib/,$cached_sourcebase/, s,^m4/,$cached_m4base/, s,^tests/,$cached_testsbase/, - s,^tests=lib/,$cached_testsbase/," + s,^tests=lib/,$cached_testsbase/, + s,^top/,," sed_rewrite_new_files="\ s,^build-aux/,$auxdir/, s,^doc/,$docbase/, s,^lib/,$sourcebase/, s,^m4/,$m4base/, s,^tests/,$testsbase/, - s,^tests=lib/,$testsbase/," + s,^tests=lib/,$testsbase/, + s,^top/,," # Create directories. { echo "$sourcebase" @@ -3444,7 +3457,8 @@ s,^doc/,$docbase/, s,^lib/,$sourcebase/, s,^m4/,$m4base/, - s,^tests/,$testsbase/," + s,^tests/,$testsbase/, + s,^top/,," # Create directories. for f in $files; do echo $f; done \