Projects
Infrastructure
libphutil
update.sh
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File update.sh of Package libphutil
#!/bin/bash if [ ! -d "libphutil.git" ]; then git clone -b stable https://github.com/phacility/libphutil.git libphutil.git pushd libphutil.git else pushd libphutil.git git remote set-url origin https://github.com/phacility/libphutil.git git fetch origin git reset --hard origin/stable git clean -d -f -x fi git_short_version_hash=$(git rev-parse --short HEAD) git_full_version_hash=$(git rev-parse HEAD) commitdate=$(date +%Y%m%d --date @$(git log HEAD^1..HEAD --oneline --format=%ct | head -n 1)) popd if [ ! -f libphutil-${git_full_version_hash}.tar.gz ]; then rm -rf libphutil-*.tar.gz wget --content-disposition https://github.com/phacility/libphutil/archive/${git_full_version_hash}.tar.gz#/libphutil-${git_full_version_hash}.tar.gz fi sed -i -r \ -e "s/git_short_version_hash .*/git_short_version_hash ${git_short_version_hash}/g" \ -e "s/git_full_version_hash .*/git_full_version_hash ${git_full_version_hash}/g" \ -e "s/Version:(\s+)[0-9]+/Version:\1${commitdate}/g" \ libphutil.spec rpmdev-bumpspec \ --new="${commitdate}.git${git_short_version_hash}" \ --comment "Promote Week #$(date +%V --date ${commitdate})" \ libphutil.spec rm -rf *.src.rpm osc ar osc build --no-verify CentOS_7 libphutil.spec && \ rm -rf review-libphutil/ libphutil-*.src.rpm && \ cp /var/tmp/build-root/CentOS_7-x86_64/home/abuild/rpmbuild/SRPMS/libphutil-*.src.rpm . && \ fedora-review --verbose -n libphutil
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.