mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-13 13:47:36 +08:00
px4-alias.sh_in: move to platforms/posix/src/px4-alias.sh_in
This commit is contained in:
@@ -110,6 +110,14 @@ elseif ("${BOARD}" STREQUAL "sitl")
|
||||
|
||||
endif()
|
||||
|
||||
# Module Symlinks
|
||||
px4_posix_generate_symlinks(
|
||||
MODULE_LIST ${module_libraries}
|
||||
PREFIX ${PX4_BASH_PREFIX}
|
||||
TARGET px4
|
||||
)
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# install
|
||||
#
|
||||
@@ -185,10 +193,3 @@ install(
|
||||
)
|
||||
|
||||
|
||||
# symlinks
|
||||
px4_posix_generate_symlinks(
|
||||
MODULE_LIST ${module_libraries}
|
||||
PREFIX ${PX4_BASH_PREFIX}
|
||||
TARGET px4
|
||||
)
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ function(px4_posix_generate_alias)
|
||||
)
|
||||
endif()
|
||||
endforeach()
|
||||
configure_file(${PX4_SOURCE_DIR}/cmake/posix/px4-alias.sh_in
|
||||
configure_file(${PX4_SOURCE_DIR}/platforms/posix/src/px4-alias.sh_in
|
||||
${OUT}
|
||||
)
|
||||
endfunction()
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# File is auto-generated by cmake compilation, do not edit.
|
||||
|
||||
# Ignore the expand_aliases command in zshell.
|
||||
if [ ! -n "$ZSH_VERSION" ]; then
|
||||
shopt -s expand_aliases
|
||||
fi
|
||||
|
||||
# Map the NuttX-style variable definition 'set <var> <value>' to something that
|
||||
# bash and alternatives understand
|
||||
set() {
|
||||
eval $1=$2
|
||||
}
|
||||
# alternative method with an alias:
|
||||
# alias set='f(){ set -- "$1=$2"; eval "$1"; unset -f f; }; eval f'
|
||||
|
||||
# Don't stop on errors.
|
||||
#set -e
|
||||
|
||||
# Arguments passed to this script:
|
||||
# $1: optional instance id
|
||||
px4_instance=0
|
||||
[[ -n "$1" ]] && px4_instance=$1
|
||||
|
||||
${alias_string}
|
||||
Reference in New Issue
Block a user