Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:olh
helpers
_service:obs_scm:obs_build.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:obs_build.sh of Package helpers
#!/bin/bash set -ex unset LANG unset ${!LC_*} root=/dev/shm api=obs dbg=--disable-debuginfo prj= pkg= repo=$1 arch=$2 spec= if test $# -gt 1 then shift 2 fi while test $# -gt 0 do : $1 case "$1" in -d|--debug|--debuginfo) dbg=--debuginfo ;; *.spec) spec=$1 ;; --*) args=( "${args[@]}" "$1" ) ;; -t|-j|-x|-k|-p|-M) args=( "${args[@]}" "$1" "$2" ) ; shift ;; -*) args=( "${args[@]}" "$1" ) ;; esac shift done if test -e .osc/_project then read prj < .osc/_project fi if test -e .osc/_package then read pkg < .osc/_package fi if test -n "${prj}" && test -n "${pkg}" then if test -z "${repo}" then repo=`obs repos ${prj} ${pkg} | sed -n '1{s@[[:blank:]]\\+@:@p}'` arch=${repo##*:} repo=${repo%:*} fi if test -n "${repo}" && test -n "${arch}" then time \ obs build \ ${dbg} \ --no-service \ --no-verify \ --no-checks \ --release=`date -u +%y%m%d%H%M%S`.0 \ "${args[@]}" \ --root=${root}/${pkg}.${api}.${prj}.${repo}.${arch} \ ${repo} \ ${arch} \ ${spec} fi 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