#!/bin/sh OSTYPE=`uname -m` echo "Detected distro: [$OSTYPE]" curl http://code.jquery.com/jquery-1.5.2.js > media/jquery-1.5.min.js curl http://www.datatables.net/download/build/jquery.dataTables.min.js > media/jquery.dataTables.min.js # This should actually use /etc/issue if [ -f /etc/fedora-release ]; then echo "Fedora..." #sudo yum groupinstall "Development Tools" #sudo yum install subversion automake autoconf autogen jam elif [ -f /etc/SuSE-release ]; then echo "SuSE..." #sudo zypper install subversion gcc gcc-c++ automake elif [ -f /etc/debian_version ]; then echo "Debian / Ubuntu..." sudo apt-get install perl graphviz libgraphviz-perl libconfig-inifiles-perl perlmagick #sudo apt-get install libimage-size-perl else echo 'Unknown distribution. Stopping here.' >&2 exit 1 fi echo "To run the techtree html builder edit mg.ini and run the script as follows:" echo "./convert_faction_xml2html.pl mg.ini"