Updates to make Linux work... still lost of issues.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1157 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
coppro
2008-08-21 02:41:30 +00:00
parent 30afb08930
commit d13b721b41
10 changed files with 129 additions and 33 deletions
+19 -11
View File
@@ -9,15 +9,23 @@
# If executed as any other user, it will fail.
case $UID in
0)
INSTALL_DIR='/usr/local/share/magicseteditor/';
EXEC_SYMLINK='/usr/local/bin/magicseteditor';;
*)
echo "Unfortunately, our installer system currently does not support installation except as root.
This is because the program currently requires a specific data directory.
Our apologies." && exit;;
0)
INSTALL_DIR='/usr/local/share/magicseteditor/';
EXEC_SYMLINK='/usr/local/bin/magicseteditor';;
*)
echo
"Unfortunately, our installer system currently does not support installation
except as root. This is because the program currently requires a specific data
directory. Our apologies." && exit;;
esac
if [ \"$MSE_INSTALL_DIR\" != "" ] then
INSTALL_DIR=$MSE_INSTALL_DIR
fi
if [ \"$MSE_EXEC_SYMLINK\" != "" ] then
INSTALL_DIR=$MSE_EXEC_SYMLINK
fi
echo "Magic Set Editor version $VERSION Installer Script.
Magic Set Editor will be installed to $INSTALL_DIR.
@@ -28,10 +36,10 @@ Is this correct [y/N]? ";
read -n 1 CONFIRM;
case $CONFIRM in
[yY])
:;;
*)
exit;;
[yY])
:;;
*)
exit;;
esac;
echo "Installing...";