Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1:Update
python-compizconfig
update.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File update.sh of Package python-compizconfig
#!/bin/sh oscmodule=compizconfig-python if [ ! -d $oscmodule ]; then echo "git checkout folder $oscmodule does not exist. Aborting..." exit 1 fi pushd $oscmodule; status=$(git pull); git submodule update; commitid=$(git log | head -n1); popd if [ "$status" != "Already up-to-date." ]; then if [ -n "$(head -n4 python-compizconfig.changes | tail -n1 | grep commit)" ]; then # The last changelog entry already was an automatic forward... let's not pullute too much. sed -i 1,5d python-compizconfig.changes fi # Setting the version in the .spec file to what the CMakeList.txt has defined if [ -f "${oscmodule}/VERSION" ]; then VERSION=$(cat ${oscmodule}/VERSION) else version_major=$(grep -P 'set \(COMPIZ_VERSION_MAJOR ([0-9])+\)' ${oscmodule}/CMakeLists.txt | tr -d "()a-zA-Z_ ") version_minor=$(grep -P 'set \(COMPIZ_VERSION_MINOR ([0-9])+\)' ${oscmodule}/CMakeLists.txt | tr -d "()a-zA-Z_ ") version_micro=$(grep -P 'set \(COMPIZ_VERSION_MICRO ([0-9])+\)' ${oscmodule}/CMakeLists.txt | tr -d "()a-zA-Z_ ") VERSION=${version_major}.${version_minor}.${version_micro} fi if [ -n "$VERSION" ]; then sed -i "s/Version:.*/Version: ${VERSION}/" *.spec fi tar cjf $oscmodule.tar.bz2 $oscmodule osc vc -m "Forward to $commitid" osc ci -m "Forward to $commitid" --skip-validation 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