See also: https://fedoraproject.org/wiki/Features/UsrMove
Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=851710
Change-Id: I073f6555249ba904f9a4e4c0c7acf64262097328
# Use scilab-bin in the current dir if it exists
# If not, then start resolving symlinks until we find scilab-bin
found=0
- curdir=$(dirname "$progname")
+ cd $(dirname "$progname")
+ curdir=$(pwd -P)
PATH="$curdir:$PATH"
progbase=$(basename "$progname")