diff options
author | Balaji Sivaraman <balaji@balajisivaraman.com> | 2022-06-25 19:54:44 +0530 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2022-06-26 21:57:30 +0800 |
commit | 0cf138cbce88ca22c0b802b6db0a7257a517a87d (patch) | |
tree | b794be618da64d57d3410c75d895433f34d17b6f | |
parent | 61ffed6ece4857fe5e708f5c3bd6d7e6d2b2b13b (diff) | |
download | fork-ledger-0cf138cbce88ca22c0b802b6db0a7257a517a87d.tar.gz fork-ledger-0cf138cbce88ca22c0b802b6db0a7257a517a87d.tar.bz2 fork-ledger-0cf138cbce88ca22c0b802b6db0a7257a517a87d.zip |
acprep: add support for arch linux
-rwxr-xr-x | acprep | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -539,7 +539,8 @@ class PrepareBuild(CommandLineApp): elif system == 'Linux': if exists('/etc/issue'): issue = open('/etc/issue') - if issue.readline().startswith('Ubuntu'): + issue_name = issue.readline() + if issue_name.startswith('Ubuntu'): info = dict([line.strip().split('=', 1) for line in open('/etc/lsb-release')]) release = info['DISTRIB_CODENAME'] @@ -673,6 +674,23 @@ class PrepareBuild(CommandLineApp): BoostInfo().dependencies('ubuntu-' + release)) self.log.info('Executing: ' + ' '.join(packages)) self.execute(*packages) + elif issue_name.startswith('Arch Linux'): + self.log.info('Looks like you are using Pacman on Arch Linux') + packages = [ + 'sudo', 'pacman', '-S', '--noconfirm', + 'base-devel', + 'boost', + 'doxygen', + 'gmp', + 'graphviz', + 'lcov', + 'libedit', + 'mpfr', + 'sloccount', + 'utf8cpp' + ] + self.log.info('Executing: ' + ' '.join(packages)) + self.execute(*packages) if exists('/etc/redhat-release'): release = open('/etc/redhat-release').readline() |