mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Improved the Linux installer.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1415 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -11,15 +11,27 @@
|
||||
case $UID in
|
||||
0)
|
||||
INSTALL_DIR='/usr/local/share/magicseteditor/';
|
||||
EXEC_SYMLINK='/usr/local/bin/magicseteditor';;
|
||||
EXEC_SYMLINK='/usr/local/bin/magicseteditor';
|
||||
FONTS_DIR='/usr/local/share/fonts/';;
|
||||
*)
|
||||
INSTALL_DIR='$HOME/.magicseteditor/';
|
||||
EXEC_SYMLINK='$HOME/bin/magicseteditor';
|
||||
esac;
|
||||
FONTS_DIR='$HOME/.fonts/';;
|
||||
esac
|
||||
|
||||
if [ "$MSE_INSTALL_DIR" != "" ]; then
|
||||
INSTALL_DIR=$MSE_INSTALL_DIR
|
||||
fi
|
||||
if [ "$MSE_EXEC_SYMLINK" != "" ]; then
|
||||
EXEC_SYMLINK=$MSE_EXEC_SYMLINK
|
||||
fi
|
||||
if [ "$MSE_FONTS_DIR" != "" ]; then
|
||||
FONTS_DIR=$MSE_FONTS_DIR
|
||||
fi
|
||||
echo "Magic Set Editor version $VERSION Installer Script.
|
||||
|
||||
Magic Set Editor will be installed to $INSTALL_DIR.
|
||||
Fonts will be installed to $FONTS_DIR.
|
||||
A symbolic link to the executable will be put at $EXEC_SYMLINK.
|
||||
|
||||
Is this correct [y/N]? ";
|
||||
@@ -37,5 +49,5 @@ echo "Installing...";
|
||||
|
||||
mkdir "$INSTALL_DIR";
|
||||
cp -r program/* "$INSTALL_DIR";
|
||||
|
||||
cp fonts/* "$FONTS_DIR";
|
||||
ln -s "$INSTALL_DIR/magicseteditor" "$EXEC_SYMLINK"
|
||||
|
||||
Reference in New Issue
Block a user