[$(id-u)-eq 0 ]&&echo"Do not run the script from the superuser!"&& zenity --error--text"Do not run the script from the superuser!" 2> /dev/null &&exit 1
SET_LANG=`zenity --title"Install $portname"--text"Select the installation language \nВыберите язык установки"--list--radiolist\
--column="Set (Выбор)"--column"Language (Язык):"\
TRUE "Русский"\
FALSE "English"`
FALSE "English"` 2> /dev/null
if[$?-eq 1 ];then exit 1;fi
case$SET_LANGin
"Русский")
INFO_TEXT="Вы запустили установщик PortWINE ${gamename} версии ${port_ver}. \n\nЭто не коммерческий продукт и развивается исключительно за идею и Ваши пожертвования. \nАвтор не несет никакой ответственности за данное программное обеспечение! \nПродолжая установку вы автоматически соглашаетесь с данными условиями.";;
INFO_TEXT="Вы запустили установщик PortWINE ${gamename} версии ${port_ver}. \n\nЭто не коммерческий продукт и развивается исключительно за идею и Ваши пожертвования. \nВсе права сторонего програмного обеспечения принадлежат их владельцам! \nПродолжая установку вы автоматически соглашаетесь с данными условиями.";;
"English")
INFO_TEXT="You run the installer PortWINE ${gamename} v. ${port_ver}. \n\nThis is not a commercial product and developed exclusively for the idea and donate. \nThe author assumes no liability for this software! \nContinuing the installation of you agree to these terms.";;
INFO_TEXT="You run the installer PortWINE ${gamename} v. ${port_ver}. \n\nThis is not a commercial product and developed exclusively for the idea and donate. \nAll rights to third-party software belong to their respective owners! \nContinuing the installation of you agree to these terms.";;
inst1=`zenity --title"Install ${portname}"--text"Выберите путь для установки (обновления) порта,\nили оставьте его по умолчанию."--list--radiolist--width=350 --height=220 \
inst1=`zenity --title"Install ${portname}"--text"Select the installation path (update) port,\nor leave it in default."--list--radiolist--width=350 --height=220 \
--column="Set..."--column"Path:"\
TRUE "${deflink}"\
FALSE "Other path..."`
FALSE "Other path..."` 2> /dev/null
if[$?-eq 1 ];then exit 1;fi
case$inst1in
"${deflink}")
D_PATH="${deflink}";;
"Other path...")
D_PATH=`zenity --file-selection--directory--title="Select the path..."`;;
D_PATH=`zenity --file-selection--directory--title="Select the path..."`
D_PATH="${D_PATH}/${portname}";;
esac;;
esac
if[$?-eq 1 ];then echo"error"&&exit 1;fi
...
...
@@ -57,40 +83,35 @@ if [ $? -eq 1 ];then echo "error" && exit 1; fi