[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnulib-tool: support for hierarchies of modules
From: |
Bruno Haible |
Subject: |
gnulib-tool: support for hierarchies of modules |
Date: |
Tue, 9 Jan 2007 14:39:43 +0100 |
User-agent: |
KMail/1.9.1 |
This patch adds support for subdirectories of the 'modules/' directory.
2007-01-08 Bruno Haible <address@hidden>
* gnulib-tool (func_all_modules): Use find, not ls, to traverse the
modules directory. Filter out CVS, ChangeLog, COPYING, README also from
subdirectories.
*** gnulib-20070108/gnulib-tool 2007-01-09 00:14:32.000000000 +0100
--- gnulib-20070108-unistring/gnulib-tool 2007-01-09 00:52:15.000000000
+0100
***************
*** 814,825 ****
# Filter out unit test modules; they can be retrieved through
# --extract-tests-module if desired.
{
! (cd "$gnulib_dir/modules" && ls -1)
if test -n "$local_gnulib_dir" && test -d "$local_gnulib_dir/modules";
then
! (cd "$local_gnulib_dir/modules" && ls -1 | sed -e 's,\.diff$,,')
fi
} \
! | sed -e '/^CVS$/d' -e '/^ChangeLog$/d' -e '/^COPYING$/d' -e
'/^README$/d' -e '/^TEMPLATE$/d' -e '/^TEMPLATE-TESTS$/d' -e '/~$/d' \
| sed -e '/-tests$/d' \
| LC_ALL=C sort -u
}
--- 814,831 ----
# Filter out unit test modules; they can be retrieved through
# --extract-tests-module if desired.
{
! (cd "$gnulib_dir" && find modules -type f -print | sed -e 's,^modules/,,')
if test -n "$local_gnulib_dir" && test -d "$local_gnulib_dir/modules";
then
! (cd "$local_gnulib_dir" && find modules -type f -print | sed -e
's,^modules/,,' -e 's,\.diff$,,')
fi
} \
! | sed -e '/^CVS$/d' -e '/[/]CVS$/d' \
! -e '/^ChangeLog$/d' -e '/[/]ChangeLog$/d' \
! -e '/^COPYING$/d' -e '/[/]COPYING$/d' \
! -e '/^README$/d' -e '/[/]README$/d' \
! -e '/^TEMPLATE$/d' \
! -e '/^TEMPLATE-TESTS$/d' \
! -e '/~$/d' \
| sed -e '/-tests$/d' \
| LC_ALL=C sort -u
}
- gnulib-tool: support for hierarchies of modules,
Bruno Haible <=