summaryrefslogtreecommitdiffstats
path: root/archrelease.in
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-08 23:38:28 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-10-07 21:53:04 +0200
commit022cd3d523a416ec2eba99220b82bfff40875c9d (patch)
treee3c6b8667ad0912567c4fb0350bc4762b2ec7890 /archrelease.in
parenta790c39c7dc3074e26b780054b0fc5a33eaa4a2b (diff)
downloaddevtools-022cd3d523a416ec2eba99220b82bfff40875c9d.tar.gz
devtools-022cd3d523a416ec2eba99220b82bfff40875c9d.tar.xz
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 <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'archrelease.in')
-rw-r--r--archrelease.in5
1 files 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