Script for svn install (outdated)
Here is a script to install svn, so, latest version of hedgewars. It should work on any debian-based system.
I know another script exists, but it didn't work for me.
This one may need some improvement, so, do not hesitate to tell me!
Don't forget to make script executable before launching it.
#!/bin/sh
#script pour installer la toute dernière version d'hedgewars :SVNCHK="svn checkout svn://svn.fireforge.net/svnroot/hedgewars/trunk"
if [ $# == 0 ]; then
echo "Usage :"
echo " -i : install"
echo " -r : remove hedgewars"
fi###install
if [ "$1" == "-i" ]; then
if [ "$(apt-cache policy build-essential |grep \"Installé\" |awk '{print $2}' )" = "(aucun)" ]; then
sudo apt-get install -y build-essential
fi
if [ "$(apt-cache policy cmake |grep \"Installé\" |awk '{print $2}' )" = "(aucun)" ]; then
sudo apt-get install -y cmake
fi
if [ "$(apt-cache policy qt4-qmake |grep \"Installé\" |awk '{print $2}' )" = "(aucun)" ]; then
sudo apt-get install -y qt4-qmake
fi
if [ "$(apt-cache policy libqt4-dev |grep \"Installé\" |awk '{print $2}' )" = "(aucun)" ]; then
sudo apt-get install -y libqt4-dev
fi
if [ "$(apt-cache policy libsdl1.2-dev |grep \"Installé\" |awk '{print $2}' )" = "(aucun)" ]; then
sudo apt-get install -y libsdl1.2-dev
fi
if [ "$(apt-cache policy libsdl-net1.2-dev |grep \"Installé\" |awk '{print $2}' )" = "(aucun)" ]; then
sudo apt-get install -y libsdl-net1.2-dev
fi
if [ "$(apt-cache policy libsdl-mixer1.2-dev |grep \"Installé\" |awk '{print $2}' )" = "(aucun)" ]; then
sudo apt-get install -y libsdl-mixer1.2-dev
fi
if [ "$(apt-cache policy libsdl-image1.2-dev |grep \"Installé\" |awk '{print $2}' )" = "(aucun)" ]; then
sudo apt-get install -y libsdl-image1.2-dev
fi
if [ "$(apt-cache policy libsdl-ttf2.0-dev |grep \"Installé\" |awk '{print $2}' )" = "(aucun)" ]; then
sudo apt-get install -y libsdl-ttf2.0-dev
fi
if [ "$(apt-cache policy fpc |grep \"Installé\" |awk '{print $2}' )" = "(aucun)" ]; then
sudo apt-get install -y fpc
fi
if [ "$(apt-cache policy liblua5.1-0-dev |grep \"Installé\" |awk '{print $2}' )" = "(aucun)" ]; then
sudo apt-get install -y liblua5.1-0-dev
fi$SVNCHK ;
if [ -d trunk ]; then
cd trunk
cmake .
make
sudo make install
fifi
###removeif [ "$1" == "-r" ]; then
sudo rm -r /usr/local/bin/hedgewars
sudo rm -r /usr/local/bin/hwengine
sudo rm -r /usr/local/share/hedgewars
fiexit
This doesn't work for me.when I open it terminal appears for a moment and then dissapears, and nothing happens.
Style is spelled style not stile.
Use Dropbox to backup your important goodies!
We moved from svn to hg, therefore this script is obsolete anyway.
I'll mark the topic as such.
sheepluva <- me my code stats ->
a Hedgewars Developer
click here to message me
<- where I'm from what I speak ->