LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File _update.sh of Package python-openqa_review (Project devel:languages:python)

#!/bin/sh -e
osc up
osc service disabledrun
version=$(osc diff | sed -n 's/^.*Update to version \([0-9.]\+\):/\1/p')
sed -i -e "s/^\(Version:\s*\)[0-9.]\+/\1$version/g" python-openqa_review.spec
rm *.tar.xz
osc rm *.tar.gz
osc service localrun download_files
osc add *.tar.gz
osc ci -m "Update to $version"
osc sr -m "Update to $version"