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

Signed-off-by: Dan McGee <d...@archlinux.org>
---
 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
-- 
1.7.5.4

Reply via email to