diff options
author | jpakkane <jpakkane@gmail.com> | 2015-03-21 14:25:42 +0200 |
---|---|---|
committer | jpakkane <jpakkane@gmail.com> | 2015-03-21 14:25:42 +0200 |
commit | a5f30e73c626b4c9284a390669322317a07a6f91 (patch) | |
tree | 3c8f68dabeca71ae7e0b51c71d2daefec8ad0c64 /install_meson.py | |
parent | dd519525ecfc6253b2472b6810213568f05a5c4b (diff) | |
parent | b71d248b28203a294ba6e3ba32ed9c6d36d3209b (diff) | |
download | meson-a5f30e73c626b4c9284a390669322317a07a6f91.zip meson-a5f30e73c626b4c9284a390669322317a07a6f91.tar.gz meson-a5f30e73c626b4c9284a390669322317a07a6f91.tar.bz2 |
Merge pull request #52 from ignatenkobrain/wip/rpm
add RPM module (Closes #49)
Diffstat (limited to 'install_meson.py')
-rwxr-xr-x | install_meson.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/install_meson.py b/install_meson.py index 6a1efdf..298de96 100755 --- a/install_meson.py +++ b/install_meson.py @@ -54,6 +54,7 @@ in_guimanfile = 'man/mesongui.1' out_guimanfile = os.path.join(man_dir, 'mesongui.1.gz') in_confmanfile = 'man/mesonconf.1' out_confmanfile = os.path.join(man_dir, 'mesonconf.1.gz') +rpmmacros_dir = os.path.join(install_root, 'lib/rpm/macros.d') symlink_value = os.path.relpath(bin_script, os.path.dirname(bin_name)) guisymlink_value = os.path.relpath(gui_script, os.path.dirname(gui_name)) @@ -105,3 +106,8 @@ if os.path.exists('modules/__pycache__'): if os.path.exists(module_dir): shutil.rmtree(module_dir) shutil.copytree('modules', module_dir) + +print('Installing RPM macros to %s.' % rpmmacros_dir) +outfilename = os.path.join(rpmmacros_dir, 'macros.meson') +shutil.copyfile('macros.meson', outfilename) +shutil.copystat('macros.meson', outfilename) |