Skip to content

Commit

Permalink
Merge pull request #2 from theimpossibleastronaut/install-to-docs
Browse files Browse the repository at this point in the history
Copy completions to docdir
  • Loading branch information
ccoVeille authored Apr 17, 2024
2 parents 8c1b251 + e897861 commit e972408
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 28 deletions.
11 changes: 5 additions & 6 deletions completions/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Shell completion scripts

By default, rmw completions are installed when rmw is installed (This can be
disabled by using '-Dinstall_shell_completions' during meson setup). If they
aren't present on your system, you can install a shell completion manually by
getting the completion from the rmw source package or git repository. See the
links below for specific installation instructions for each completion.

By default, rmw completions are copied to the rmw documentation dir when rmw
is installed. If they aren't present on your system, you can install a shell
completion manually by getting the completion from the source package or git
repository. See the links below for specific installation instructions for
each completion.

## Fish

Expand Down
18 changes: 0 additions & 18 deletions completions/meson.build

This file was deleted.

11 changes: 7 additions & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ main_bin = executable(

subdir ('man')

if get_option('install_shell_completions')
subdir('completions')
endif

if get_option('build_tests')
subdir ('test')
endif
Expand All @@ -91,3 +87,10 @@ install_data(
),
install_dir : get_option('docdir')
)

# Copy completions to docdir
install_subdir(
'completions',
install_dir : join_paths(get_option('docdir')),
strip_directory : false
)

0 comments on commit e972408

Please sign in to comment.