What is easiest way of checking that there is newer version of Trunk available @ Linux
svn up, does update and only those changes, but is there good, automatic way to do compiling if there is changes.
Idea is to put those routines to script what is run when I want to play the game.
Now I have two startup scripts, one just goes to /usr/local/ and runs game,
another one blindly does svn up, compiles, and then starts game.
I have Debian Testing, and I didn't made those to .deb's in any point.
My current Trunk game startup script:
/usr/local/bin/ufo_trunk_update
#!/bin/bash
cd /usr/local/src/ufoai_trunk/trunk/
sudo svn up
sudo ./configure
sudo make -j 3
sudo make -j 3 lang
sudo make -j 3 maps
./ufo
I call this script from Gnome program launcher with this line:
gnome-terminal -e /usr/local/bin/ufo_trunk_update
This asks my user password once.
And if I don't want to do update, I have second script
#!/bin/bash
cd /usr/local/src/ufoai_trunk/trunk/
./ufo
with Gnome program launcher line:
/usr/local/bin/ufo_trunk