diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-02-22 19:11:17 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-02-22 19:11:17 +0100 |
commit | 371f57b0438ccc7c54ab61e5cd1a1482bafc783a (patch) | |
tree | a3547b1d3d6f72a188f4f7da422b7ee5da0e9dcf | |
parent | 2fe5dbf904d8ded1299fc2dfd85f015b7b2a04c6 (diff) | |
download | devtools-4522364f0e3419126605867aac17a3bc84370c5c.tar.xz |
Don't check if package was released already0.9.4
The checks aren't reliable enough and fail if the local repo is broken due to
network failures. So for now we just allways commit.
-rwxr-xr-x | archrelease | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/archrelease b/archrelease index a06ab0b..a85bea1 100755 --- a/archrelease +++ b/archrelease @@ -23,21 +23,14 @@ fi echo -n 'releasing package...' pushd .. >/dev/null - -trunk=$(svnversion -cn trunk) -[[ $? -gt 0 ]] && abort -repo=$(svnversion -cn "repos/${1}" 2>/dev/null) -if [[ $? -eq 0 ]] && [[ ${trunk%:*} -le ${repo%:*} ]]; then - echo 'already done' -else - if [ -d "repos/${1}" ]; then - svn rm --force -q "repos/${1}" - svn commit -q -m "archrelease: remove ${1}" || abort - fi - svn copy -q -r HEAD trunk "repos/${1}" - svn commit -q -m "archrelease: copy trunk to ${1}" || abort - popd >/dev/null - echo 'done' +if [ -d "repos/${1}" ]; then + svn rm --force -q "repos/${1}" + svn commit -q -m "archrelease: remove ${1}" || abort fi +svn copy -q -r HEAD trunk "repos/${1}" +svn commit -q -m "archrelease: copy trunk to ${1}" || abort +popd >/dev/null +echo 'done' + # vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent # kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132 |