Merge pull request #57 from ignatenkobrain/rpm

install: install rpm macros if RPM bin in system. Closes #56
pull/59/head
jpakkane 10 years ago
commit 40e8e203d5
  1. 2
      install_meson.py

@ -107,7 +107,7 @@ if os.path.exists(module_dir):
shutil.rmtree(module_dir) shutil.rmtree(module_dir)
shutil.copytree('modules', module_dir) shutil.copytree('modules', module_dir)
if os.path.exists(os.path.join('/usr', rpmmacros_dir)): if os.path.exists('/usr/bin/rpm'):
print('Installing RPM macros to %s.' % rpmmacros_dir) print('Installing RPM macros to %s.' % rpmmacros_dir)
outfilename = os.path.join(rpmmacros_dir, 'macros.meson') outfilename = os.path.join(rpmmacros_dir, 'macros.meson')
os.makedirs(rpmmacros_dir, exist_ok=True) os.makedirs(rpmmacros_dir, exist_ok=True)

Loading…
Cancel
Save