diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-21 14:00:32 -0500 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-07-25 17:50:22 +0200 |
commit | 5d39ffb3414f1d4d13ae73ba5dbefa957c92dfe6 (patch) | |
tree | d5df663517210fc6814ec9785893f31153f96edc /archrelease | |
parent | 7e5ae10b43a3b74b3c3236c5a36616704e3c1747 (diff) |
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>
Diffstat (limited to 'archrelease')
-rwxr-xr-x | archrelease | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/archrelease b/archrelease index 8ea718c..baaf6cf 100755 --- a/archrelease +++ b/archrelease @@ -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 |