From 491a99b8a2531207121d651d8e4b15fe4febbd2b Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 1 Jul 2011 12:07:46 -0400 Subject: install modules all at once build an array of paths to modules, and install them all at once with mkdir -p and cp --parents. Cuts back on our major source of calls to install(1). This is a tad ugly in that it creates some amount of data duplication, keeping an array of paths in addition to module names. However, turns out to be a worthwhile tradeoff as merging the two datasets into one results in the need for massive string trimming. --- functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'functions') diff --git a/functions b/functions index 314748f..ac7da7e 100644 --- a/functions +++ b/functions @@ -167,7 +167,8 @@ add_module() { return 1 fi - _add_file "${path#$BASEDIR}" "$path" 644 + # aggregate modules and add them all at once to save some forks + MODPATHS+=("$path") ADDED_MODULES+=("${module//-/_}") # explicit module depends -- cgit v1.2.3-24-g4f1b