From 022cd3d523a416ec2eba99220b82bfff40875c9d Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 8 Sep 2011 16:38:28 -0500 Subject: archrelease: call 'svn copy' once for all files We don't need to invoke svn copy on each file; it accepts multiple arguments. This cut Allan's time releasing one patch-friendly package from 5 minutes to 2 minutes. Signed-off-by: Dan McGee Signed-off-by: Lukas Fleischer --- archrelease.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/archrelease.in b/archrelease.in index 2f6a563..7bb4c8a 100644 --- a/archrelease.in +++ b/archrelease.in @@ -52,9 +52,8 @@ for tag in "$@"; do svn add --parents -q "repos/$tag" fi - for file in "${known_files[@]}"; do - svn copy -q -r HEAD "$trunk/$file" "repos/$tag/" - done + # copy all files at once from trunk to the subdirectory in repos/ + svn copy -q -r HEAD ${known_files[@]/#/$trunk/} "repos/$tag/" echo 'done' done -- cgit v1.2.3-70-g09d2