Projects
Eulaceura:Mainline:GA
x264
_service:obs_scm:x264-snapshot.sh
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:x264-snapshot.sh of Package x264
#!/bin/bash set -e tmp=$(mktemp -d) trap cleanup EXIT cleanup() { set +e [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp" } unset CDPATH pwd=$(pwd) package=x264 branch=stable commit=HEAD pushd "$tmp" git clone https://code.videolan.org/videolan/x264.git -b ${branch} cd ${package} tag=$(git rev-list HEAD -n 1 | cut -c 1-8) git checkout ${commit} ./version.sh > "$pwd"/version.h API="$(grep '#define X264_BUILD' < x264.h | sed 's/^.* \([1-9][0-9]*\).*$/\1/')" date=$(git log -1 --format=%cd --date=short | tr -d \-) git archive --prefix="${package}-0.$API-${date}git${tag}/" --format=tar ${branch} | bzip2 > "$pwd"/${package}-0.$API-${date}git${tag}.tar.bz2 popd >/dev/null echo \# globals for x264-0.$API-${date}git${tag}.tar.bz2 echo %global api $API echo %global gitdate ${date} echo %global gitversion ${tag} echo echo rpmdev-bumpspec -c \"Update to x264-0.$API-${date}git${tag} \(stable branch\)\" x264.spec echo rfpkg scratch-build --srpm --arches x86_64 echo rfpkg new-sources x264-0.$API-${date}git${tag}.tar.bz2 echo rfpkg ci -c
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
.
浙ICP备2022010568号-2