Build Fetcher

Metraxis

Member
I'm sure I'm not the only one who has thrown together something like this, but it may be useful for someone, so here 'tis.

Assumptions:
You use the .jar SVN builds
You have both bash and wget installed.
You store your KoLmafia SVN builds in the directory ~/KolMafia
You invoke KoL Mafia via a symlink in that same directory called KoLMafia.jar

Installation
Download into somehwere in your PATH
Change the name to getmafia from getmafia.txt (Extension restrictions on the board)
chmod u+x, 755 or other appropriate mask.

Usage:
getmafia <Build Number> will fetch the specified build into the KolMafia directory, then change the symlink to point to the newly downloaded build.
 

Attachments

  • getmafia.txt
    280 bytes · Views: 104
This script should work on Mac OS X too, but you'll need to install wget first. This isn't terribly hard to do, if you have the developer tools installed. Grab wget from its site, then... open Terminal and type four commands:
cd (drag the extracted wget folder to the Terminal window)
./configure
make
sudo make install

... then you'll probably want to add /usr/local/bin (the default installation directory) to your PATH, if it isn't there (default installs don't have it in the PATH).
 
Top