EAPI 5: doheader and newheader helper functions
[portage.git] / bin / ebuild-helpers / doheader
1 #!/bin/bash
2 # Copyright 1999-2012 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4
5 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
6
7 case ${EAPI} in
8         0|1|2|3|4|4-python|4-slot-abi)
9                 die "${0##*/} is not supported in EAPI ${EAPI}"
10                 ;;
11 esac
12
13 if [[ $# -lt 1 ]] ; then
14         helpers_die "${0##*/}: at least one argument needed"
15         exit 1
16 fi
17
18 exec \
19 env \
20 INSDESTTREE="/usr/include/" \
21 doins "$@"