diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2021-04-22 23:57:36 +0200 |
---|---|---|
committer | Iñigo Martínez <inigomartinez@gmail.com> | 2021-05-03 22:18:24 +0200 |
commit | a4decd1bd2dbcda163e72abbd68894b2b396e969 (patch) | |
tree | 1159bbb5435b1a69d9eeb54156a5633eaff5a3b0 /meson_post_install.py | |
parent | 13883cd5c4d28dbed3c49008430c7dbbae8d5ef0 (diff) |
build: port to meson build system
meson is a build system focused on speed an ease of use, which
helps speeding up the software development. This patch adds meson
support along autotools.
Diffstat (limited to 'meson_post_install.py')
-rw-r--r-- | meson_post_install.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meson_post_install.py b/meson_post_install.py new file mode 100644 index 0000000..fbf40fa --- /dev/null +++ b/meson_post_install.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 + +import os +import subprocess +import sys + +prefix = os.environ['MESON_INSTALL_DESTDIR_PREFIX'] + +bindir = os.path.join(prefix, sys.argv[1]) +subprocess.check_call(['chmod', '755', os.path.join(bindir, 'mbim-network')]) + +bash_completion_completionsdir = os.path.join(prefix, sys.argv[2]) +os.rename(os.path.join(bash_completion_completionsdir, 'mbimcli-completion'), + os.path.join(bash_completion_completionsdir, 'mbimcli')) |