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:
parent
a790c39c7d
commit
022cd3d523
|
@ -52,9 +52,8 @@ for tag in "$@"; do
|
||||||
svn add --parents -q "repos/$tag"
|
svn add --parents -q "repos/$tag"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for file in "${known_files[@]}"; do
|
# copy all files at once from trunk to the subdirectory in repos/
|
||||||
svn copy -q -r HEAD "$trunk/$file" "repos/$tag/"
|
svn copy -q -r HEAD ${known_files[@]/#/$trunk/} "repos/$tag/"
|
||||||
done
|
|
||||||
|
|
||||||
echo 'done'
|
echo 'done'
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue