summaryrefslogtreecommitdiff
path: root/configure
blob: d5df8c01929093ea29ddd31f5de0cfb0ada90c26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#! /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
Generated by cgit. See skreutz.com for my tech blog and contact information.