diff options
author | Jernuh Zakalwe | 2018-10-19 17:20:42 +0200 |
---|---|---|
committer | Jernuh Zakalwe | 2018-10-19 17:20:42 +0200 |
commit | f2a93b8c75b98b0b939335e894c854b19b5fd30b (patch) | |
tree | fca9e01863c085a658e542056678e2f670d6719f /evewinetricks | |
parent | 9b1e3eb0d28469449f59376a3f365dc72910668b (diff) | |
download | aur-f2a93b8c75b98b0b939335e894c854b19b5fd30b.tar.gz |
Replaced evewinecfg and everegedit with symlinks to evewine which execute these commands now.
Changes on build_installer.sh script to handle symlinks from evewinecfg and everegedit.
Handle symlinks from everegedit and evewinecfg in setup.sh.in and PKGBUILD too.
Diffstat (limited to 'evewinetricks')
-rw-r--r-- | evewinetricks | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/evewinetricks b/evewinetricks index 3cda255841c0..6a6141e67b08 100644 --- a/evewinetricks +++ b/evewinetricks @@ -1,15 +1,20 @@ #!/bin/sh EVECONF=$HOME/.config/CCP/EVE.conf -EVEDIR=$HOME/.local/lib/EVE - UCW=$(grep UseCustomWine $EVECONF | cut -d= -f2) if [ "x$UCW" = "xtrue" ] ;then - WINEPATH=$(grep CustomWinePath $EVECONF | cut -d= -f2) + CUSTOMWP=$(grep CustomWinePath $EVECONF | cut -d= -f2) + WINEPATH=${CUSTOMWP%/*} + SHAREDIR=$(grep SharedCacheFolder $EVECONF | cut -d= -f2) + WINEPREFIX=${SHAREDIR}wineenv else - echo "$(basename $0): Error: Custom wine not set!" + echo "$(basename $0): ERROR: \"Use Custom Wine\" not set!" + exit 1 +fi +if [ ! -x "$WINEPATH/wine" ] ;then + echo "$(basename $0): ERROR: \"$CUSTOMWP\" in \"Custom Wine path\" not found!" exit 1 fi -env WINEPREFIX=$HOME/.local/lib/EVE/SharedCache/wineenv \ - WINE=$WINEPATH $(which winetricks) "$@" +env WINEPREFIX=$WINEPREFIX \ + WINE=$WINEPATH/wine $(which winetricks) "$@" |