summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers/doheader
blob: 9bbe5bc29c2d7701d3ef3373258a28ef8659da8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh

case ${EAPI} in
	0|1|2|3|4|4-python|4-slot-abi)
		die "${0##*/} is not supported in EAPI ${EAPI}"
		;;
esac

if [[ $# -lt 1 ]] ; then
	helpers_die "${0##*/}: at least one argument needed"
	exit 1
fi

exec \
env \
INSDESTTREE="/usr/include/" \
doins "$@"