diff --git a/platforms/posix/src/px4/common/px4-alias.sh_in b/platforms/posix/src/px4/common/px4-alias.sh_in index 4dd43e877f..61f0af5579 100644 --- a/platforms/posix/src/px4/common/px4-alias.sh_in +++ b/platforms/posix/src/px4/common/px4-alias.sh_in @@ -1,6 +1,7 @@ #!/bin/sh # File is auto-generated by cmake compilation, do not edit. +R="`pwd`/" # Map the NuttX-style variable definition 'set ' to something that # bash and alternatives understand @@ -9,37 +10,6 @@ _set() { eval $1=\"$2\" } alias set=_set -# alternative method with an alias: -# alias set='f(){ set -- "$1=$2"; eval "$1"; unset -f f; }; eval f' - -# Execute another shell script. -# $1: Path to the script, (optionally starts with /, to match with the NuttX -# scripts) -sh() { - script="$1" - case "$script" in - "/"*) - script="$script" - ;; - *) - script="/$script" - ;; - esac - . "$(pwd)$script" -} - -source() { - script="$1" - case "$script" in - "/"*) - script="$script" - ;; - *) - script="/$script" - ;; - esac - . "$(pwd)$script" -} # Don't stop on errors. #set -e