MegaGlest/source/tools/convert_faction_xml2html/setupDeps.sh
Mark Vejvoda c94eb32bd8 Stuff from pabs (debian games) round #2
- remove jquery minified from svn because:
<pabs> also because they are minified, that means that the source code isn't included, which violates DFSG item 2: http://www.debian.org/social_contract#guidelines
- Now we use curl to download these files if the user runs the setupDeps.sh script (mentioned in the header of the main pl file)
2011-05-03 08:42:38 +00:00

29 lines
940 B
Bash
Executable File

#!/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"