@ -137,13 +137,13 @@ echo -e "This script compiles and installs OpenRA from source with Tiberian Sun
- The script creates an installation package using OpenRA source code and additional Red Alert 2(and optionally Dune 2) mod files from Github.\n\nNOTE: As the development of OpenRA & Red Alert 2(& Dune 2) continues, this script will likely become unusable some day. Please, feel free to modify it if necessary."
- The script creates an installation package using OpenRA source code and additional Red Alert 2(and optionally Dune 2) mod files from Github.\n\nNOTE: As the development of OpenRA & Red Alert 2(& Dune 2) continues, this script will likely become unusable some day. Please, feel free to modify it if necessary."
if[[$DISTRO=~ $UBUNTU]];then
if[[$DISTRO=~ $UBUNTU]];then
echo -e "$line_in\nThe script has been tested on:\n\nDistribution\t\tStatus$out\nUbuntu 16.10$green_in\t\tOK$out\nUbuntu 16.04 LTS$green_in\tOK$out\nUbuntu 15.10$yellow_in\t\tOK (missing dependencies?)$out\nUbuntu 15.04 LTS$green_in\tOK$out\nUbuntu 14.10$yellow_in\t\tOK (missing dependencies?)$out\nUbuntu 14.04 LTS$yellow_in\tOK (missing dependencies?)$out\nLinux Mint 18$green_in\t\tOK$out\nLinux Mint 17.3$green_in\t\tOK$out\nLinux Mint 17.2$green_in\t\tOK$out\nLinux Mint 17.1$yellow_in\t\tOK (missing dependencies?)$out\nLinux Mint 16$red_in\t\tFailure$out$dim_in (missing dependencies)$out\n"
echo -e "$line_in\nThe script has been tested on:\n\nDistribution\t\tStatus$out\nUbuntu 17.04 LTS$green_in\tOK$out\nUbuntu 16.10$green_in\t\tOK$out\nUbuntu 16.04 LTS$green_in\tOK$out\nUbuntu 15.10$yellow_in\t\tOK (missing dependencies?)$out\nUbuntu 15.04 LTS$green_in\tOK$out\nUbuntu 14.10$yellow_in\t\tOK (missing dependencies?)$out\nUbuntu 14.04 LTS$yellow_in\tOK (missing dependencies?)$out\nLinux Mint 18$green_in\t\tOK$out\nLinux Mint 17.3$green_in\t\tOK$out\nLinux Mint 17.2$green_in\t\tOK$out\nLinux Mint 17.1$yellow_in\t\tOK (missing dependencies?)$out\nLinux Mint 16$red_in\t\tFailure$out$dim_in (missing dependencies)$out\n"
elif[[$DISTRO=~ $DEBIAN]];then
elif[[$DISTRO=~ $DEBIAN]];then
echo -e "$line_in\nThe script has been tested on:\n\nDistribution\t\tStatus$out\nDebian 8.3 $green_in\t\tOK$out\n"
echo -e "$line_in\nThe script has been tested on:\n\nDistribution\t\tStatus$out\nDebian 8.3 $green_in\t\tOK$out\n"
elif[[$DISTRO=~ $OPENSUSE]];then
elif[[$DISTRO=~ $OPENSUSE]];then
echo -e "$line_in\nThe script has been tested on:\n\nDistribution\t\tStatus$out\nOpenSUSE Tumbleweed $green_in\tOK$out\nOpenSUSE Leap 42.1 $green_in\tOK$out\nOpenSUSE 13.2 $green_in\t\tOK$out\nOpenSUSE 13.1 $red_in\t\tFailure$out$dim_in (missing dependencies)$out\n"
echo -e "$line_in\nThe script has been tested on:\n\nDistribution\t\tStatus$out\nOpenSUSE Tumbleweed $green_in\tOK$out\nOpenSUSE Leap 42.1 $green_in\tOK$out\nOpenSUSE 13.2 $green_in\t\tOK$out\nOpenSUSE 13.1 $red_in\t\tFailure$out$dim_in (missing dependencies)$out\n"
elif[[$DISTRO=~ $FEDORA]];then
elif[[$DISTRO=~ $FEDORA]];then
echo -e "$line_in\nThe script has been tested on:\n\nDistribution\t\tStatus$out\nFedora 23 $green_in\t\tOK$out\nFedora 22 $green_in\t\tOK$out\n"
echo -e "$line_in\nThe script has been tested on:\n\nDistribution\t\tStatus$out\nFedora 24 $green_in\t\tOK$out\nFedora 23 $green_in\t\tOK$out\nFedora 22 $red_in\t\tFailure$out$dim_in (missing dependencies)$out\n"
if[[ ! $(dpkg-query -W -f='${Status}'"${DEBIAN_DEPS[@]}"| grep -c "not-installed") -eq 0]];then#Find all dependency packages. If 'not-installed' string has match(es), then
if[[ ! $(apt-cache policy"${DEBIAN_DEPS[@]}"| grep -c "none") -eq 0]];then#Find all dependency packages. If 'none' string has match(es), then
echo -e "Some dependencies are missing.\n"
echo -e "Some dependencies are missing.\n"
sudocheck
sudocheck
@ -266,8 +266,8 @@ function sudocheck() {
sleep 4
sleep 4
sudo apt-get $METHOD install ${DEBIAN_DEPS[@]}
sudo apt-get $METHOD install ${DEBIAN_DEPS[@]}
mozroots --import --sync &&\
sudo apt-key update ||exit1
#DEPRECATED COMMAND (Mozilla has dropped support):
#DEPRECATED COMMAND (Mozilla has dropped support):
#mozroots --import --sync
else
else
echo -e "All dependencies are met. Continuing."
echo -e "All dependencies are met. Continuing."
fi
fi
elif[[$DISTRO=~ $FEDORA]];then
elif[[$DISTRO=~ $FEDORA]];then
if[[ ! $(dnf list installed "${FEDORA_DEPS[@]}" 2>&1| grep -c "Error") -eq 0]];then#Find all dependency packages. If "Error" string has match(es), then
if[[ ! $(dnf list installed |grep "${FEDORA_DEPS[@]}" 2>&1|grep -c "No such file or directory") -eq 0]];then#Find all dependency packages. If "No such file or directory" string has match(es), then
#DEPRECATED COMMAND (Mozilla has dropped support):
#mozroots --import --sync
else
else
echo -e "All dependencies are met. Continuing."
echo -e "All dependencies are met. Continuing."
fi
fi
@ -363,7 +368,7 @@ function sudocheck() {
if[[ ! $(echo$dune2_install| sed 's/ //g')=~ ^([nN][oO]|[nN])$ ]];then
if[[ ! $(echo$dune2_install| sed 's/ //g')=~ ^([nN][oO]|[nN])$ ]];then
#Copy all patch files excluding the one which modifies 'mods' string in the Linux Makefile (double patching it will cause conflicts between D2 and RA2)
#Copy all patch files excluding the one which modifies 'mods' string in the Linux Makefile (double patching it will cause conflicts between D2 and RA2)
@ -72,7 +72,7 @@ echo -e "$bold_in\n***OpenRA compilation script completed.\nPlease see further
sleep 2
sleep 2
echo -e "$bold_in\n***MANUAL INSTALLATION***$out\n\nInstall OpenRA by typing '$PACKAGEMANAGER_INSTALL$WORKING_DIR/$PACKAGE_NAME' (without quotations) in a terminal window."
echo -e "$bold_in\n***MANUAL INSTALLATION***$out\n\nInstall OpenRA by typing '$PACKAGEMANAGER_INSTALL$WORKING_DIR/$PACKAGE_NAME' (without quotations) in a terminal window."
sleep 4
sleep 4
echo -e "$bold_in\n***TIBERIAN SUN & RED ALERT 2 - HOWTO***$out\n\nTO PLAY TIBERIAN SUN: Launch the game and download the required asset files from the web when the game asks you to do so.\n\nTO PLAY RED ALERT 2: You must install language.mix, multi.mix, ra2.mix and theme.mix into '$HOME/.openra/Content/ra2/' folder. You find these files from original RA2 installation media (CD's):\n\n-theme.mix, multi.mix = RA2 CD Root folder\n-ra2.mix, language.mix = RA2 CD Root/INSTALL/Game1.CAB (inside that archive file)\n\nTO PLAY DUNE 2 (if installed): Please see https://github.com/Fincer/openra-tibsunra2/ front page for further instructions.$bold_in\n\n***LAUNCHING OPENRA***$out\n\nTo launch OpenRA, simply type 'openra' (without quotations) in your terminal or use a desktop shortcut file.$bold_in\n\n***UNINSTALLATION***$out\n\nIf you want to remove OpenRA, just type '$PACKAGEMANAGER_REMOVE$INSTALL_NAME' (without quotations)\n\nYou can find package of $INSTALL_NAME in '$HOME' for further usage.$bold_in\n\n***MULTIPLAYER***$out\n\nIt's recommended to build OpenRA using exactly same GIT source files for multiplayer usage to minimize possible version differences/conflicts between players. Please make sure all players have exactly same git versions of their in-game mods (RA, CNC, D2, D2K, TS, RA2). Version numbers are formatted like 'git-e0d7445' etc. and can be found in each mod description in the mod selection menu.\n\nFor this compilation, the version numbers are as follows:\nOpenRA version: $OPENRA_GITVERSION\nRA2 version: $RA2_GITVERSION\nDune 2 version (if installed): $D2_GITVERSION\n\nHave fun!\n"
echo -e "$bold_in\n***TIBERIAN SUN & RED ALERT 2 - HOWTO***$out\n\nTO PLAY TIBERIAN SUN: Launch the game and download the required asset files from the web when the game asks you to do so.\n\nTO PLAY RED ALERT 2: You must install language.mix, multi.mix, ra2.mix and theme.mix into '$HOME/.openra/Content/ra2/' folder. You find these files from original RA2 installation media (CD's):\n\n-theme.mix, multi.mix = RA2 CD Root folder\n-ra2.mix, language.mix = RA2 CD Root/INSTALL/Game1.CAB (inside that archive file)\n\nTO PLAY DUNE 2 (if installed): Please see https://github.com/Fincer/openra-tibsunra2/ front page for further instructions.$bold_in\n\n***LAUNCHING OPENRA***$out\n\nTo launch OpenRA, simply type 'openra' (without quotations) in your terminal or use a desktop shortcut file.$bold_in\n\n***UNINSTALLATION***$out\n\nIf you want to remove OpenRA, just type '$PACKAGEMANAGER_REMOVE$INSTALL_NAME' (without quotations)\n\nYou can find package of $INSTALL_NAME in '$HOME' for further usage (Arch Linux: $WORKING_DIR).$bold_in\n\n***MULTIPLAYER***$out\n\nIt's recommended to build OpenRA using exactly same GIT source files for multiplayer usage to minimize possible version differences/conflicts between players. Please make sure all players have exactly same git versions of their in-game mods (RA, CNC, D2, D2K, TS, RA2). Version numbers are formatted like 'git-e0d7445' etc. and can be found in each mod description in the mod selection menu.\n\nFor this compilation, the version numbers are as follows:\nOpenRA version: $OPENRA_GITVERSION\nRA2 version: $RA2_GITVERSION\nDune 2 version (if installed): $D2_GITVERSION\n\nHave fun!\n"
@ -112,7 +112,7 @@ if [[ $DISTRO =~ "$ARCH" ]]; then
if[[ ! $(echo$dune2_install| sed 's/ //g')=~ ^([nN][oO]|[nN])$ ]];then
if[[ ! $(echo$dune2_install| sed 's/ //g')=~ ^([nN][oO]|[nN])$ ]];then
#Copy all patch files excluding the one which modifies 'mods' string in the Linux Makefile (double patching it will cause conflicts between D2 and RA2)
#Copy all patch files excluding the one which modifies 'mods' string in the Linux Makefile (double patching it will cause conflicts between D2 and RA2)