echo -e "\nAllright, let's continue. Do you want $bold_in\n\n1.$out manually check which OpenRA build dependencies (packages) will be installed on your system and manually install OpenRA after compilation? $dim_in(manual rpm packages installation)$bold_in\n2.$out automatically accept the installation of the OpenRA build dependencies during the script execution and automatically install OpenRA after compilation? $dim_in(automatic installation of rpm packages)$out\n"
echo -e "\nAllright, let's continue. Do you want $bold_in\n\n1.$out manually check which OpenRA build dependencies (packages) will be installed on your system and manually install OpenRA after compilation? $dim_in(manual rpm packages installation)$bold_in\n2.$out automatically accept the installation of the OpenRA build dependencies during the script execution and automatically install OpenRA after compilation? $dim_in(automatic installation of rpm packages)$out\n"
fi
fi
read -r -p "Please type 1 or 2 (Default: 2): " number
read -r -p "Please type 1 or 2 (Default: 2): " number
attempts=5
while[[ ! $(echo$number| sed 's/ //g') -eq 1&& ! $(echo$number| sed 's/ //g') -eq 2]];do
attempts=$(($attempts-1))
if[[$attempts -eq 0]];then
echo -e "\nMaximum attempts reached. Aborting.\n"
break
fi
echo -e "\nInvalid answer. Expected number 1 or 2. Please type again ($attempts attempts left):\n"
read number
letnumber=$(echo$number| sed 's/ //g')
done
sleep 1
sleep 1
echo -e "\nDune 2 -- Question\n"
echo -e "\nDune 2 -- Question\n"
@ -171,7 +184,7 @@ if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
echo -e "\nMore information about hotfixes: https://github.com/Fincer/openra-tibsunra2/#about-patches--hotfixes\n"
echo -e "\nMore information about hotfixes: https://github.com/Fincer/openra-tibsunra2/#about-patches--hotfixes\n"
read -r -p "Use these hotfixes? [y/N] " hotfixes
read -r -p "Use these hotfixes? [y/N] " hotfixes
if[[$hotfixes=~ ^([yY][eE][sS]|[yY])$ ]];then
if[[$(echo$hotfixes| sed 's/ //g')=~ ^([yY][eE][sS]|[yY])$ ]];then
echo -e "\nHotfixes applied. Continuing."
echo -e "\nHotfixes applied. Continuing."
sleep 2
sleep 2
else
else
@ -179,7 +192,7 @@ if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; 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)
@ -82,23 +82,34 @@ if [[ $DISTRO =~ "$ARCH" ]]; then
echo -e "\n$bold_in***Welcome Comrade*** $out\n"
echo -e "\n$bold_in***Welcome Comrade*** $out\n"
echo -e "You are about to install OpenRA with Tiberian Sun & Red Alert 2 on Arch Linux.\n"
echo -e "You are about to install OpenRA with Tiberian Sun & Red Alert 2 on Arch Linux.\n"
read -r -p "Do you want to continue? [y/N] " response
read -r -p "Do you want to continue? [y/N] " response
if[[$response=~ ^([yY][eE][sS]|[yY])$ ]];then
if[[$(echo$response| sed 's/ //g')=~ ^([yY][eE][sS]|[yY])$ ]];then
echo -e "\nAllright, let's continue. Do you want $bold_in\n\n1.$out manually install OpenRA after its compilation? $dim_in(manual pacman installation)$bold_in\n2.$out automatically install OpenRA after its compilation? $dim_in(pacman -U <compiled_openra_package>)$out\n"
echo -e "\nAllright, let's continue. Do you want $bold_in\n\n1.$out manually install OpenRA after its compilation? $dim_in(manual pacman installation)$bold_in\n2.$out automatically install OpenRA after its compilation? $dim_in(pacman -U <compiled_openra_package>)$out\n"
read -r -p "Please type 1 or 2 (Default: 2): " number
read -r -p "Please type 1 or 2 (Default: 2): " number
sleep 1
attempts=5
while[[ ! $(echo$number| sed 's/ //g') -eq 1&& ! $(echo$number| sed 's/ //g') -eq 2]];do
attempts=$(($attempts-1))
if[[$attempts -eq 0]];then
echo -e "\nMaximum attempts reached. Aborting.\n"
break
fi
echo -e "\nInvalid answer. Expected number 1 or 2. Please type again ($attempts attempts left):\n"
read number
letnumber=$(echo$number| sed 's/ //g')
done
sleep 1
rm $WORKING_DIR/data/linux/arch_linux/*.patch
rm $WORKING_DIR/data/linux/arch_linux/*.patch
echo -e "\nDune 2 -- Question\n"
echo -e "\nDune 2 -- Question\n"
read -r -p "Additionally, Dune 2 can be installed, too. Do you want to install it? [y/N] (Default: y) " dune2_install
read -r -p "Additionally, Dune 2 can be installed, too. Do you want to install it? [y/N] (Default: y) " dune2_install
if[[ ! $dune2_install=~ ^([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)