File indexing completed on 2024-04-14 05:37:12

0001 #!/bin/sh
0002 set -e
0003 set -x
0004 
0005 #SCRIPTDIR=$(dirname $(readlink -f "$0"))
0006 
0007 case "$(uname -s)" in
0008 
0009    Darwin)
0010      echo 'Mac OS X'
0011      readlinkf(){ perl -MCwd -e 'print Cwd::abs_path shift' "$1";}
0012      SCRIPTDIR=$(dirname $(readlinkf "$0"))
0013      ;;
0014 
0015    # taken from: https://en.wikipedia.org/wiki/Uname
0016    Linux|*BSD)
0017      echo 'Linux'
0018      SCRIPTDIR=$(dirname $(readlink -f "$0"))
0019      ;;
0020 
0021    CYGWIN*|MINGW32*|MSYS*)
0022      echo 'MS Windows'
0023      SCRIPTDIR=$(dirname $(readlink -f "$0")) # untested
0024      ;;
0025 
0026    # Add here more strings to compare
0027    #
0028 
0029    *)
0030      echo 'other OS, please notify the developers'
0031      SCRIPTDIR=$(dirname $(readlink -f "$0")) # untested
0032      ;;
0033 esac
0034 
0035 
0036 # see about prefix.sh : https://community.kde.org/Get_Involved/development
0037 . "$SCRIPTDIR/build-simple/prefix.sh"
0038 
0039 "$SCRIPTDIR/inst-simple/bin/ktechlab"