Linux script to auto update and compile

General feedback and discussion of the game.

Moderator: Forum Moderators

Post Reply
Draximus Prime
Posts: 5
Joined: April 15th, 2008, 3:03 am
Location: Missouri, USA
Contact:

Linux script to auto update and compile

Post by Draximus Prime »

I was wondering if anyone could give me a script for linux that will automatically download the latest stable and development(perhaps from svn?) and then uninstall the previous versions, and reinstall the current ones.
I don't need to check if they're up to date, unless there's an easy way to do that, and i'll just use cron to schedule it daily or maybe weekly.
I might be able to figure it out, but i'm hoping someone else has already done it, because i don't have much experience in bash scripting.(I'm going to work on learning more of it in my free time. :geek: )

Thanks for reading, even if you can't help! :)

P.S. If possible, i'd also like to keep my saves and settings.
Draximus Prime
Posts: 5
Joined: April 15th, 2008, 3:03 am
Location: Missouri, USA
Contact:

Re: Linux script to auto update and compile

Post by Draximus Prime »

Ok, I figured out with a little help from the internet how to do this. If anyone else needs to do this I have the script attached.
draximus.prime is my username, so that should help in determining what paths to use. Also i just did the svn checkout originally straight from my home directory.(Directions on the svn checkout are in the wiki).

This might not help anyone... but I thought i'd post it here just in case. Oh, and for this you have to have sudo set up to require no password.

P.S. Also, i set this up using cron to automatically run every day.
Attachments
autowesupdate.txt
remove the .txt to use it.
may also need to chmod +x autowesupdate
(338 Bytes) Downloaded 260 times
Post Reply