Newer
Older
#!/bin/bash
}
if [ "$1" = '' ]; then
abort 'Usage: archrelease <repo>'
if [ ! -f PKGBUILD ]; then
if [ "$(basename $(readlink -f .))" != 'trunk' ]; then
if [ ! -z "$(svn status -q)" ]; then
abort 'archrelease: You have not committed your changes yet!'
echo -n 'releasing package...'
if [ -d "repos/${1}" ]; then
svn rm --force -q "repos/${1}"
svn commit -q -m "archrelease: remove ${1}" || abort
svn copy -q -r HEAD trunk "repos/${1}"
svn commit -q -m "archrelease: copy trunk to ${1}" || abort
popd >/dev/null
echo 'done'