Script for svn install (outdated)

2 replies [Last post]
thuban
User offline. Last seen 14 years 13 weeks ago. Offline
Joined: 2009-12-25
Posts: 27

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.

Quote:
#!/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
fi

fi
###remove

if [ "$1" == "-r" ]; then
sudo rm -r /usr/local/bin/hedgewars
sudo rm -r /usr/local/bin/hwengine
sudo rm -r /usr/local/share/hedgewars
fi

exit

Cairo
Cairo's picture
User offline. Last seen 1 year 34 weeks ago. Offline
Joined: 2010-07-06
Posts: 198

This doesn't work for me.when I open it terminal appears for a moment and then dissapears, and nothing happens. Sad Smiley

Style is spelled style not stile.
Use Dropbox to backup your important goodies!

sheepluva
sheepluva's picture
User offline. Last seen 22 weeks 11 hours ago. Offline
Joined: 2009-07-18
Posts: 563

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


   <- where I'm from  what I speak -> 

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]