summaryrefslogtreecommitdiffstats
path: root/archrelease
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-02-17 15:24:54 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-02-17 15:24:54 +0100
commit849e6c6de51415888146f2def34b5264bccffb7a (patch)
tree7e5d72f3600c6269894ff9db570c379e503f40ee /archrelease
parent62e4272ca27286aac28b2da50cff771db8bb5c46 (diff)
downloaddevtools-849e6c6de51415888146f2def34b5264bccffb7a.tar.gz
devtools-849e6c6de51415888146f2def34b5264bccffb7a.tar.xz
Check if package was already released
Diffstat (limited to 'archrelease')
-rwxr-xr-xarchrelease6
1 files changed, 6 insertions, 0 deletions
diff --git a/archrelease b/archrelease
index f1fbb26..70845a6 100755
--- a/archrelease
+++ b/archrelease
@@ -23,6 +23,12 @@ fi
echo -n 'releasing package...'
pushd .. >/dev/null
+url=$(svn info | grep URL)
+url="${url##*URL: }"
+if [ -z "$(svn diff ${url}/trunk ${url}/repos/${1} 2>/dev/null)" -a $? -eq 0 ]; then
+ echo 'already done'
+ exit 1
+fi
if [ -d repos/$1 ]; then
svn rm --force -q repos/$1
svn commit -q -m "archrelease: remove $1"