summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-21 21:00:32 +0200
committerPierre Schmitz <pierre@archlinux.de>2011-07-25 17:50:22 +0200
commit5d39ffb3414f1d4d13ae73ba5dbefa957c92dfe6 (patch)
treed5df663517210fc6814ec9785893f31153f96edc
parent7e5ae10b43a3b74b3c3236c5a36616704e3c1747 (diff)
downloaddevtools-5d39ffb3414f1d4d13ae73ba5dbefa957c92dfe6.tar.gz
devtools-5d39ffb3414f1d4d13ae73ba5dbefa957c92dfe6.tar.xz
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>
-rwxr-xr-xarchrelease4
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