#! /bin/sh set -eu exec 3>config.mk case "$( uname )" in OpenBSD) echo 'BINGRP = bin' 1>&3 echo 'MANGRP = bin' 1>&3 ;; FreeBSD) echo 'BINGRP = wheel' 1>&3 echo 'MANDIR = share/man/man' 1>&3 echo 'MANGRP = wheel' 1>&3 ;; Linux) case "$( sed -n 's/^ID=//p' /etc/os-release )" in void) echo 'BINMODE = 755' 1>&3 echo 'MANMODE = 644' 1>&3 echo 'MANDIR = share/man/man' 1>&3 ;; arch) echo 'PREFIX = /usr' 1>&3 echo 'BINMODE = 755' 1>&3 echo 'MANDIR = share/man/man' 1>&3 echo 'MANMODE = 644' 1>&3 echo 'MANGZ = 1' 1>&3 ;; esac ;; esac