Skip to content

Commit

Permalink
Automatically tag systemtap files
Browse files Browse the repository at this point in the history
  • Loading branch information
xclaesse authored and eli-schwartz committed Sep 28, 2022
1 parent a010274 commit 2a262d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/markdown/Installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ time, please help extending the list of well known categories.
developers (i.e. build tools).
- `tests`:
* Files installed into `installed-tests` subdir (*Since 0.64.0*).
- `systemtap`:
* Files installed into `systemtap` subdir (*Since 0.64.0*).

Custom installation tag can be set using the `install_tag` keyword argument
on various functions such as [[custom_target]], [[configure_file]],
Expand Down
2 changes: 2 additions & 0 deletions mesonbuild/backend/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -1542,6 +1542,8 @@ def guess_install_tag(self, fname: str, outdir: T.Optional[str] = None) -> T.Opt
return 'i18n'
elif 'installed-tests' in dest_path.parts:
return 'tests'
elif 'systemtap' in dest_path.parts:
return 'systemtap'
mlog.debug('Failed to guess install tag for', dest_path)
return None

Expand Down

0 comments on commit 2a262d2

Please sign in to comment.