Projects
Tools
libphutil
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 9
View file
libphutil.spec
Changed
@@ -3,7 +3,7 @@ Summary: A collection of PHP utility classes Name: libphutil -Version: 20160727.git%{git_short_version_hash} +Version: 20160806.git%{git_short_version_hash} Release: 2%{?dist} License: ASL 2.0 URL: http://www.phabricator.com/docs/libphutil/
View file
gen-tar.sh
Deleted
@@ -1,35 +0,0 @@ -#!/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) - -popd - -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 - -# Repack if Remi indeed means "non-Free", https://bugzilla.redhat.com/show_bug.cgi?id=1362490#c5 -#tar zxvf libphutil-${git_short_version_hash}.tar.gz -#rm -rf libphutil-${git_full_version_hash}/externals/jsonlint -#rm -rf libphutil-*.tar.gz -#tar czvf libphutil-${git_short_version_hash}.tar.gz libphutil-${git_full_version_hash}/ - -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: [0-9]+/Version: $(date +'%Y%m%d')/g" \ - libphutil.spec - -osc ar
View file
update.sh
Added
@@ -0,0 +1,38 @@ +#!/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 + +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
.