Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Script to pull fresh XBMC source, compile and install it.
#!/bin/sh
#
# Script to pull fresh XBMC source, compile and install it.
#
# Requirements
# ============
#
# * Cloned XBMC git repo
# * All requirements for build XBMC from source
# * git
#
# Installation
# ============
#
# Place script somewhere in ``$PATH`` (say ``~/bin/``) and give to it exec
# rights (``$ chown +x ~/bin/xbmc-update.sh``).
#
# Usage
# =====
#
# $ xbmc-update.sh [path]
#
path=${1:-/srv/shared/xbmc}
cd $path
# Clean up
make clean
make distclean
# Next files are not auto deleted by previous commands
rm build-aux/ltmain.sh \
config.h.in \
lib/libass/m4/libtool.m4 \
lib/libass/m4/ltoptions.m4 \
lib/libass/m4/ltsugar.m4 \
lib/libass/m4/ltversion.m4 \
lib/libass/m4/lt~obsolete.m4 \
libtool \
stamp-h1 \
xbmc/cores/dvdplayer/Codecs/libdvd/libdvdcss/config.h.in
rm -r xbmc/cores/dvdplayer/Codecs/
# Pull fresh changes and compile the XBMC
set -e
git pull
./bootstrap
LD=/usr/`uname -m`-suse-linux/bin/ld ./configure --disable-pulse --enable-mid
make
# Uninstall previous version and install new one
sudo make uninstall
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment