2 function install_datas() {
3 read -p "I'm about to install Descent 2 datas to /usr/share/d2x-rebirth/, would you like to continue (Y/n) ? "
8 type unarj &> /dev/null
10 echo 'I need unarj to continue';
11 read -p 'Do you want install it (Y/n) ? '
15 pacman -Sy unarj || return 2
20 echo 'Give me the complete path to "descent2.sow" file (example, with the cd drive : /path/to/drive/d2data/descent2.sow)'
22 if [ -z "$REPLY" ]; then return 2; fi
23 if [ -f "$REPLY" ]; then
26 echo -e "Bad path (Enter to abort)\n"
32 cd /usr/share/d2x-rebirth/
33 unarj e "$descent_file" &> /dev/null
34 if (($?)); then echo -e '!! Error with unarj !!\n' >&2; return 2; fi
35 rm *.exe *.dll *.txt *.bat descent.cfg descentg.ini \
36 descent.hi *.doc eregcard.ini &>/dev/null
38 read -p 'Would you like to include movies files (need 210 MB more space) (N/y) ? '
46 echo 'Give me the complete path to the directory that contains those movies (example, with the cd drive : /path/to/drive/d2data/)'
48 if [ -z "$REPLY" ]; then return 2; fi
49 if [ -d "$REPLY" ]; then
52 echo -e "Bad path (Enter to abort)\n"
57 cp "$movies_path"/*-h.mvl . &> /dev/null
59 chmod 644 * &> /dev/null
69 echo 'Put your Descent 2 datas either to /usr/share/d2x-rebirth/ or ~/.d2x-rebirth/'
72 Following files are needed to run the game:
85 And these movies files (but not mandatory):
87 intro-h.mvl and/or intro-l.mvl
88 other-h.mvl and/or other-l.mvl
89 robots-h.mvl and/or robots-l.mvl
91 These files - except the Movies (*.mvl) - are archived in the file descent2.sow
92 This file is an ARJ-archive and can be extracted with an archiver like unarj
94 You don't own the full game, yet?
95 Just visit GOOD OLD GAMES via:
96 http://www.gog.com/en/gamecard/descent_1_descent_2/pp/fc074d501302eb2b93e2554793fcaf50b3bf7291
97 and download it for a very low price! DRM-FREE!
99 You can get AddOns for the game from http://www.dxx-rebirth.com/addons/