...
...
else
else
BASEPATH=$(pwd)/scripts
BASEPATH=$(pwd)/scripts
fi
fi
# get first CODESYS profile and start the script with it
# get first CODESYS profile and start the script with it
profile=$(basename "$(ls -1 ~/.wine.cds/drive_c/CODESYS/CODESYS/Profiles/*.profile | head -n 1 | sed 's,.profile,,')")
profile=$(basename "$(ls -1 ~/.wine.cds/drive_c/CODESYS/CODESYS/Profiles/*.profile* | head -n 1 | sed 's,\.profile.*,,')")
libdoc=$(ls -1 ${HOME}/.wine.cds/drive_c/CODESYS/CODESYS/DocScripting/*/libdoc.exe)
libdoc=$(ls -1 ${HOME}/.wine.cds/drive_c/CODESYS/CODESYS/DocScripting/*/libdoc.exe)
# start ide?
# start ide?
if [ "${1}" == "ide" ]; then
if [ "${1}" == "ide" ]; then
export WINEPREFIX=~/.wine.cds
export WINEPREFIX=~/.wine.cds