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 (Revision 3)
Currently displaying revision
3
,
Show latest
#!/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 # Get ffmpeg sources cd omxplayer make -f Makefile.ffmpeg checkout 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 mv omxplayer/.git/ . mv omxplayer omxplayer-$VER tar czf omxplayer-$VER.tar.gz omxplayer-$VER/ 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
.