?? easywine2006.sh
字號:
#!/bin/bash#tempdir="$homedir/.EasyWine"function yn_answer { unset refstr while [ "$refstr" != 'y' ] && [ "$refstr" != 'n' ] do { echo -n "$1" read refstr } done}function strinput { unset refstr echo -n "$1" read refstr}installtype=""if [ "$HOME" = "/root" ]; thenif [ ! `which EasyWine` ]thenclearelse echo "===============================================/////////////////////////////////////////////// EasyWine 2.7 RL Of Wine Set Tools uninstall EasyWine deman http://www.easywine.org///////////////////////////////////////////////==============================================="echo -n "Do you want to uninstall EasyWine (y/n)?"yn_answerif [ "$refstr" = "y" ]thenrpm -e EasyWinerm -r -f /usr/share/EasyWinerm -f /usr/bin/EasyWinerm -f /bin/EasyWineclear echo "===============================================/////////////////////////////////////////////// EasyWine 2.7 RL Of Wine Set Tools Finish Uninstall deman http://www.easywine.org///////////////////////////////////////////////==============================================="elseexit 1fificlear echo "===============================================/////////////////////////////////////////////// EasyWine 2.7 RL Of Wine Set Tools Install EasyWine deman http://www.easywine.org///////////////////////////////////////////////==============================================="echo -n "Do you want to install EasyWine (y/n)?"yn_answerif [ "$refstr" = "y" ]thenechoelseexit 1fi echo "===============================================/////////////////////////////////////////////// EasyWine 2.7 RL Of Wine Set Tools Starting Install deman http://www.easywine.org///////////////////////////////////////////////==============================================="echoecho "Your Linux locale is :"echolocaleechoecho "Please choice your Linux Locale to install EasyWine"echoecho "1、UTF8 2、GB18030 / GB2312 / GBK"echoif [ "$installtype" = "" ]then echo -n "Type 1 or 2 and Enter to continue install EasyWine(1-2)? : " strinputelse refstr=$installtypefi sed -e '1,/EasyWineBIN/d' "$0" |sed -e '1,/EasyWineBIN/d' > /tmp/EasyWine-2.7RL.tar.bz2 cd / tar xjvf /tmp/EasyWine-2.7RL.tar.bz2>tmp/EasyWine#cp /usr/share/EasyWine/ver $tempdir/verif [ "$refstr" = "1" ]thencp /usr/share/EasyWine/utf8/EasyWine /usr/bin/EasyWineelif [ "$refstr" = "2" ]thenechoelseexit 1fichmod +x /usr/bin/EasyWinecp /usr/share/EasyWine/shelllink/EasyWine.desktop /usr/share/applnk/Utilitiescp /usr/share/EasyWine/shelllink/EasyWine.desktop /root/Desktop rm -rf /tmp/EasyWine*clear echo "===============================================/////////////////////////////////////////////// EasyWine 2.7 RL Of Wine Set Tools Finish Install deman http://www.easywine.org///////////////////////////////////////////////===============================================" exitelseecho "===============================================/////////////////////////////////////////////// Warning:Install Fail! You must running EasyWine install as root///////////////////////////////////////////////==============================================="exitfi exit#EasyWineBINBZh91AY&SY梵騕輗
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -