From 849e6c6de51415888146f2def34b5264bccffb7a Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 17 Feb 2010 15:24:54 +0100 Subject: Check if package was already released --- archrelease | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'archrelease') 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" -- cgit v1.2.3-70-g09d2