26 lines
765 B
Bash
Executable File
26 lines
765 B
Bash
Executable File
#!/bin/sh
|
|
|
|
OSTYPE=`uname -m`
|
|
echo "Detected distro: [$OSTYPE]"
|
|
|
|
# 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"
|
|
|