]> Savannah Git Hosting - gnulib.git/commit
gnulib-tool: allow multiple --local-dir usage
authorPavel Raiskup <praiskup@redhat.com>
Sat, 21 Nov 2015 13:09:15 +0000 (14:09 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 9 Dec 2015 01:29:42 +0000 (01:29 +0000)
commit55c6f22b8043843aa7cf6843326eb4abed4de75c
treeca8aae1a8058d30697a54e26a8280eefa37e908a
parentb8d01591928acf7640dcb4c3652320a07c3c2ddb
gnulib-tool: allow multiple --local-dir usage

* gnulib-tool: Use --local-dir to construct compound
$local_gnulib_path path instead of $local_gnulib_dir.  Determine
PATH_SEPARATOR early.
(local_gnulib_dir): Rename into $local_gnulib_path everywhere.
(func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
func_determine_path_separator because that needs to be detected
earlier now.
(func_determine_path_separator): New function.
(func_path_foreach, func_path_foreach_inner): New functions.
(func_path_prepend, func_path_append): Likewise.
(func_lookup_local_file, func_lookup_local_file_cb): Likewise.
(func_lookup_file, func_all_modules): Use new functions to work
with local_gnulib_path.
(func_modules_in_dir, func_exists_module): New callbacks for
func_path_foreach.
(func_exists_module, func_get_tests_module): Likewise.
(func_is_local_file, func_should_symlink): New helper methods.
(func_add_file, func_update_file): Use new func_should_symlink
instead, DRY.
(func_reconstruct_cached_local_gnulib_path): New helper.
(func_reconstruct_cached_dir): New callback.
(func_import): The cached_local_gnulib_dir renamed to
cached_local_gnulib_path similarly to local_gnulib_dir.
Use new func_reconstruct_cached_local_gnulib_path.
(func_count_relative_local_gnulib_path): New sub-method.
(func_create_testdir): Use func_should_symlink, DRY.
(func_create_megatestdir): Use new functions to work with
local_gnulib_path correctly.
(func_append_local_dir): New helper.
ChangeLog
gnulib-tool