Dolphin, the GameCube and Wii emulator - Forums

Full Version: Dolphin Auto Build script for Linux!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hey everyone, just thought I'd share a little bash script I made to make the agonizing three step process of downloading the revision, configuring, then building dolphin on linux a simple one step process. It's quite simple, as I made it in under 15 minutes with a very limited knowledge of bash.

Rename the script to dolphin-builder.sh after downloading!

Here's how it works:

1. Download Script
2. Open a terminal in the directory that contains the script
3. Run chmod 700 ./dolphin-builder.sh to make the script executable.
4. Run the script!

So why is this useful you ask?

Well, the script checks if you have a revision of dolphin checked out in your home directory, if one exists it will compare that revision to the latest one on-line. If these revisions match, it will let you know and exit the script.

If there is a later version available, it will download the revision and run through the normal build procedure.

If you have never checked out a revision the script will ask you if it can install the dependencies, check out the latest revision, and build it for you.

Hope someone finds it useful! You're also welcome to modify it, just post it in this thread so we can all benefit from it!

Thanks!
I'm no coder/programmer by any sense of the term(s) but:

Shouldn't the answ checks be

if [ $answ = "n" ]; then
sudo apt-get install scons cmake ,etc., etc....

and

if [ $answ = "y" ]; then
echo ""

instead?

Either that or change the question to something like "Do you need to install dependencies? y/n"
I've modified this script to be compatible with yum and zypp, changed the shebang to use any shell rather than Bash (that's stupid, stop doing that), and generally fixed it up. Attached. You can run this with the .txt extension if you pass the filename to the shell directly, but I recommend taking off the extension and marking the script as executable (chmod +x, NOT 700), and then run it as a normal program (of course if you are launching it from instance Nautilus tell it to launch in a terminal).
You're a gentleman and a scholar, thanks.

Nossile

Excellent!
hmm......is just like my perl project but for linux........sweet
hello,

Have you idéa for CMAKE_INSTALL_PREFIX variable, i can't change /usr where is my error ?


svn checkout http://dolphin-emu.googlecode.com/svn/trunk/ dolphin-emu-read-only && cd dolphin-emu-read-only && mkdir Build && cd Build && cmake "-D CMAKE_INSTALL_PREFIX=/home/fran/TEST/DOLPHIN" .. && make -j8


Thk
Erm, it would've been kinda easier and cleaner if you had used CPack for generating an rpm/deb package and let the package manager handle all the dependency stuff.. Wink
Hello,

how i can re take R7184 with svn cmd ??

thk
Rolleyes
hello,

when i can take R7184 with svn ?

Thk
Pages: 1 2