2011-01-21 06:30:24 +01:00
|
|
|
#!/bin/sh
|
2012-10-30 07:48:12 +01:00
|
|
|
#
|
|
|
|
# Use this script to install build dependencies on a number of Linux platforms
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Originally written by Mark Vejvoda <mark_vejvoda@hotmail.com>
|
|
|
|
# Rewritten by Tom Reynolds <tomreyn@megaglest.org>
|
|
|
|
# Copyright (c) 2012 Mark Vejvoda, Tom Reynolds under GNU GPL v3.0
|
2011-01-21 06:30:24 +01:00
|
|
|
|
|
|
|
OSTYPE=`uname -m`
|
|
|
|
echo "Detected distro: [$OSTYPE]"
|
|
|
|
|
2011-05-03 10:42:38 +02:00
|
|
|
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
|
|
|
|
|
2011-02-08 18:59:40 +01:00
|
|
|
# This should actually use /etc/issue
|
2011-01-21 06:30:24 +01:00
|
|
|
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
|
2011-02-08 18:59:40 +01:00
|
|
|
elif [ -f /etc/debian_version ]; then
|
2011-01-21 06:30:24 +01:00
|
|
|
echo "Debian / Ubuntu..."
|
2011-02-08 18:59:40 +01:00
|
|
|
sudo apt-get install perl graphviz libgraphviz-perl libconfig-inifiles-perl perlmagick
|
2011-01-31 03:05:05 +01:00
|
|
|
#sudo apt-get install libimage-size-perl
|
2011-02-08 18:59:40 +01:00
|
|
|
else
|
|
|
|
echo 'Unknown distribution. Stopping here.' >&2
|
|
|
|
exit 1
|
2011-01-21 06:30:24 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "To run the techtree html builder edit mg.ini and run the script as follows:"
|
|
|
|
echo "./convert_faction_xml2html.pl mg.ini"
|
|
|
|
|