#!/bin/bash | |
if [[ ! -d "GENTOO_DATADIR"/data/music ]] ; then | |
echo "You have to install the data files in order to play!" | |
echo "You can either \`emerge freecraft-fcmp\` or install" | |
echo "the data files from the Warcraft CD." | |
echo | |
echo "To install off the warcraft CD do this:" | |
echo " 1 mount the cd at /mnt/cdrom" | |
echo " 2 run the script GENTOO_DATADIR/tools/build.sh" | |
echo " 3 leave cd in the drive to listen to music" | |
exit 1 | |
fi | |
exec "GENTOO_LIBDIR"/freecraft -d "GENTOO_DATADIR"/data "$@" |