diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-02-17 15:24:54 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-02-17 15:24:54 +0100 |
commit | 849e6c6de51415888146f2def34b5264bccffb7a (patch) | |
tree | 7e5d72f3600c6269894ff9db570c379e503f40ee /archrelease | |
parent | 62e4272ca27286aac28b2da50cff771db8bb5c46 (diff) | |
download | devtools-849e6c6de51415888146f2def34b5264bccffb7a.tar.xz |
Check if package was already released
Diffstat (limited to 'archrelease')
-rwxr-xr-x | archrelease | 6 |
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" |