Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mazdlc
divx265
bump.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bump.sh of Package divx265
#!/bin/sh basedir=$(cd `dirname $0`;pwd) cd $basedir CHECK_URL="http://labs.divx.com/divx265/" oldver=`cat PKGBUILD|grep -oP '(?<=^pkgver=)\S*$'` oldver_underline=`echo $oldver|sed 's/\./_/g'` newver_underline=`curl -s $CHECK_URL|grep -oP '(?<=DivX265_)\d{1,2}_\d{1,2}_\d{1,2}'|head -1` newver=`echo $newver_underline|sed 's/_/\./g'` if [[ z$newver != "z" && $oldver != $newver ]] ; then echo "$oldver -> $newver" sed -i "s/^pkgver=\S*$/pkgver=${newver}/g" PKGBUILD sed -i "s/${oldver_underline}/${newver_underline}/g" _service osc commit -m bump fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor