Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:cgoncalves:pyside:devel
python-pyside
release-snapshot.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File release-snapshot.sh of Package python-pyside
#!/bin/bash -x # based on Emulators:Wine/wine by meissner appname="pyside" specfile="python-pyside" bsdir="/home/carlos/devel/obs/home:cgoncalves:pyside:devel/$specfile" snapdir="/home/carlos/devel/scm/pyside/" xdate=`date +%Y%m%d` cd $bsdir rm $appname-*.tar.bz2 cd $snapdir/$appname head=`cat .git/refs/heads/master` git pull newhead=`cat .git/refs/heads/master` if [ "$newhead" == "$head" ]; then echo "*** No git change found ($head/$newhead), no rebuilt package." if [ "$1" != "-f" ]; then exit 0 fi fi major=`grep -E '^set\(BINDING_API_MAJOR_VERSION \"' CMakeLists.txt | awk '{print $2}' | cut -b 2` minor=`grep -E '^set\(BINDING_API_MINOR_VERSION \"' CMakeLists.txt | awk '{print $2}' | cut -b 2` micro=`grep -E '^set\(BINDING_API_MICRO_VERSION \"' CMakeLists.txt | awk '{print $2}' | cut -b 2` version=$major.$minor.$micro.$xdate rversion=$major.$minor.$micro libsoversion=$major\_$minor cd .. # workaround to not delete pyside-examples/, pyside-tools/, and pyside-boost/ rm $appname-0* ln -s $appname $appname-$version tar --exclude=.git --exclude=build -cjf $appname-$version.tar.bz2 $appname-$version/. mv $appname-$version.tar.bz2 $bsdir cd $bsdir perl -pi -e "s/$specfile \(Version.*/$specfile \(Version $version\)/;" $specfile.spec perl -pi -e "s/Version:.*/Version: $version/;" $specfile.spec perl -pi -e "s/define rversion.*/define rversion $rversion/;" $specfile.spec perl -pi -e "s/define libsoversion.*/define libsoversion $libsoversion/;" ${specfile}.spec osc addremove osc vc -m "update to $version" osc ci -m "update to $version"
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