Skip to content

Commit

Permalink
add installation
Browse files Browse the repository at this point in the history
Signed-off-by: Mabel Zhang <mabel@openrobotics.org>
  • Loading branch information
mabelzhang committed May 3, 2022
1 parent 0649de7 commit 1efb619
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,4 @@ endif(build_errors)
include(CTest)

add_subdirectory(src)
add_subdirectory(etc)
3 changes: 3 additions & 0 deletions etc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Install the bash completion script in an unversioned location.
install(FILES ign.bash_completion.sh DESTINATION share/ignition/ignition.completion.d)
install(FILES ignition.completion DESTINATION share/ignition)
9 changes: 9 additions & 0 deletions etc/ignition.completion
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

# Directory of current script
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

# Source the bash completion script for each subcommand
for f in $SCRIPT_DIR/ignition.completion.d/*.bash_completion.sh ; do
source $f
done

0 comments on commit 1efb619

Please sign in to comment.