Advertisement
inukaze

Debians - Instalar Japones - ".wine-prep.sh"

Mar 23rd, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.17 KB | None | 0 0
  1. #!/bin/bash
  2. # Go to the Game Directory
  3. DIR="$( cd -P "$( dirname "$0" )" && pwd )"
  4. cd "$DIR" && cd ..
  5. export WINEPREFIX="$PWD/wine"
  6. export WINEDEBUG="-all"
  7.  
  8.     if  [ "$UID" == "0" ]; then
  9.     luser=`who | head -1 | tail -1 | awk '1 {print $1}'`
  10.     su -c "xmessage -center -print \"No se debe lanzar Este script como root lo unico que lograras es configurar wine en la cuenta equivocada\"" $luser
  11.     exit
  12.         else
  13.     usuario=`whoami`
  14.     fi
  15.  
  16. statuswine=`dpkg -s wine | grep -i status`
  17.     if [ "$statuswine" == "Status: unknown ok not-installed" ]; then
  18.     xmessage -center -print "W.i.n.e is not installed the process will fail for sure"
  19.     xmessage -center -print "Install W.i.n.e and then try again"
  20.     exit
  21.     #Status: install ok installed
  22.     #Status: unknown ok not-installed
  23.     else
  24.  
  25. cd ~/
  26. echo "It's winetricks in the system"
  27.     if [ -e "winetricks" ]; then
  28.     echo "You Have Winetricks"
  29.         else
  30.     echo "You Don't Have Winetricks"
  31.     wget http://winetricks.org/winetricks
  32.     fi
  33.     echo "Please Wait Downloads & Installations"
  34.     bash winetricks "fakejapanese" "cjkfonts"  "takao" "d3dx9_42" "fontfix" "wsh56" "vcrun6"
  35.     echo "You can run Japaneses Games when all installations be Completed"
  36.     fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement