Commit 022cd3d5 authored by Dan McGee's avatar Dan McGee Committed by Lukas Fleischer
Browse files

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: default avatarDan McGee <dan@archlinux.org>
Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent a790c39c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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