Me suis amusé à faire un script d’installation :
[code]#!/bin/sh
#Script pour installer xonotic, dernière version
#requiert sudo et git, les dépendances sont installées ensuite.
GITREPO=“http://git.xonotic.org/xonotic/xonotic.git”
chkdep()
{
echo "Vérification des dépendances…"
for i in $(echo “build-essential xserver-xorg-dev
x11proto-xf86dri-dev x11proto-xf86dga-dev
x11proto-xf86vidmode-dev libxxf86dga-dev libxcb-xf86dri0-dev libxpm-dev
libxxf86vm-dev libsdl1.2-dev libsdl-image1.2-dev
libclalsadrv-dev libasound2-dev libxext-dev
libsdl1.2debian-pulseaudio git-core unzip wget”); do
if [ "$(apt-cache policy $i |grep Installé |awk '{print $2}' )" = "(aucun)" ]; then
echo "Installation de : $i"
sudo apt-get install -y "$i"
fi
done
}
download()
{
git clone $GITREPO
}
install_()
{
if [ -d xonotic ]; then
cd xonotic
./all update -l best
./all compile
./all run
else
echo "Il semble que le dossier xonotic n’existe pas…"
exit 6
fi
}
chkdep
download
install_
exit 0
[/code]