archrelease: add repos/ directory if it doesn't exist

Very easy thing to forget when creating a new package, but easy enough
to check for and add automatically.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
Dan McGee 2011-06-21 14:00:32 -05:00 committed by Pierre Schmitz
parent 7e5ae10b43
commit 5d39ffb341
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@ if [ -d "repos/${1}" ]; then
svn rm --force -q "repos/${1}"
svn commit -q -m "archrelease: remove ${1}" || abort
fi
if [ ! -d repos ]; then
mkdir repos
svn add repos
fi
svn copy -q -r HEAD "${trunk}" "repos/${1}"
svn commit -q -m "archrelease: copy ${trunk} to ${1}" || abort
popd >/dev/null