|
|
# Released under the GNU GPL. See LICENSE for more information | # Released under the GNU GPL. See LICENSE for more information |
| |
# Discover ies4linux installation folder | # Discover ies4linux installation folder |
IES4LINUX=`dirname "$0"` |
IES4LINUX_RELPATH="$(test -L $0 && echo $(readlink $0) || echo $0)" |
|
IES4LINUX="$(dirname $IES4LINUX_RELPATH)" |
cd "$IES4LINUX" | cd "$IES4LINUX" |
export IES4LINUX=`pwd` | export IES4LINUX=`pwd` |
| |
|
# Changes to the user's home directory, in case "$IES4LINUX" is not writable, |
|
# because executing `wine --version` (executed, notably, in "lib/messages.sh"), |
|
# while in a directory where the user does not have write permission, |
|
# leads to (unimportant?) warnings. |
|
cd "$HOME" |
|
|
# Create log file | # Create log file |
# mkdir -p "$HOME"/.ies4linux | # mkdir -p "$HOME"/.ies4linux |
# touch "$HOME"/.ies4linux/log | # touch "$HOME"/.ies4linux/log |
|
|
INSTALLIE2=0 | INSTALLIE2=0 |
| |
# Basic imports | # Basic imports |
source lib/functions.sh |
source "$IES4LINUX"/lib/functions.sh |
source lib/terminal.sh |
source "$IES4LINUX"/lib/terminal.sh |
source lib/messages.sh |
source "$IES4LINUX"/lib/messages.sh |
| |
# Get some command-line options. | # Get some command-line options. |
# If an option is specified on the command line, the user won't be asked for it later on. | # If an option is specified on the command line, the user won't be asked for it later on. |