From d4ae3985b3991758d641f6e48854cdc853bb7edf Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 14 Oct 2020 13:16:03 -0700 Subject: [PATCH] px4-alias.sh_in:Remove source and add R=${pwd} px4-alias.sh_in:Remove sh alias --- .../posix/src/px4/common/px4-alias.sh_in | 32 +------------------ 1 file changed, 1 insertion(+), 31 deletions(-) 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