Skip to content

Instantly share code, notes, and snippets.

@playpauseandstop
Created January 11, 2011 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save playpauseandstop/774244 to your computer and use it in GitHub Desktop.
Save playpauseandstop/774244 to your computer and use it in GitHub Desktop.
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