# Upgrade the system and install developer tools. pacman --noconfirm -Sy pacman pacman --noconfirm -Syu pacman --noconfirm -Sy base-devel # Install language and language packaging system pacman --noconfirm -Sy python curl -O http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg bash setuptools-0.6c11-py2.6.egg # Install simulation framework easy_install simpy # Install subversion to export examples more easily pacman --noconfirm -Sy subversion # Download code to run svn export https://simpy.svn.sourceforge.net/svnroot/simpy/SimPy/SimPy/trunk/SimPyModels/ # Create a directory to store results mkdir results # Execute the code MODELS=SimPyModels/*.py for m in $MODELS do OUTFILE=`basename $m` python $m > results/$OUTFILE.out done # Bundle files we want to save for export export FILENAME=results-`uuidgen`.tgz tar -czvf $FILENAME results # Install cadaver for WebDAV pacman --noconfirm -Sy cadaver # Create a config file for cadaver cat < ~/.netrc machine dav.ananelson.com login temp password temp EOF # Upload the tgz of results to remote webdav store echo "put $FILENAME" | cadaver http://dav.ananelson.com/webdav