Projects
Multimedia
omxplayer
get_from_git.sh
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File get_from_git.sh of Package omxplayer
#!/bin/bash # this is a huge hunk of stuff, so reuse the local repo if possible if [ -d omxplayer/.git ]; then cd omxplayer git pull cd .. else set -e git clone https://github.com/popcornmix/omxplayer.git set +e fi cd omxplayer # Get ffmpeg sources make -f Makefile.ffmpeg checkout # Generating Man page locally make omxplayer.1 cd - TOPDIR=$(pwd) cd omxplayer LINE=$(git show --format=format:"%h %ai"|head -n 1) set -- $LINE REV=$1 DATE=$2 VER=${DATE//-/.} set -e # Do not use 'git archive' since we will miss checked out ffmpeg/ folder # git archive --prefix=omxplayer-$VER/ -o $TOPDIR/omxplayer-${VER}.tar master cd $TOPDIR osc rm -f omxplayer-*.tar.gz || true mv omxplayer/.git/ . mv omxplayer omxplayer-$VER tar czf omxplayer-$VER.tar.gz omxplayer-$VER/ osc add omxplayer-${VER}.tar.gz mv omxplayer-$VER omxplayer mv .git/ omxplayer/ sed -i "s/^Version:.*/Version: $VER/" omxplayer.spec osc vc -m "Update to $REV ($DATE)"
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
.