From 0cf138cbce88ca22c0b802b6db0a7257a517a87d Mon Sep 17 00:00:00 2001 From: Balaji Sivaraman Date: Sat, 25 Jun 2022 19:54:44 +0530 Subject: acprep: add support for arch linux --- acprep | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'acprep') diff --git a/acprep b/acprep index bdf463b6..d4012993 100755 --- a/acprep +++ b/acprep @@ -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() -- cgit v1.2.3