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>
This commit is contained in:
Dan McGee 2011-09-08 16:38:28 -05:00 committed by Lukas Fleischer
parent a790c39c7d
commit 022cd3d523
1 changed files with 2 additions and 3 deletions

View File

@ -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