From: Ulrich Müller Date: Fri, 31 Aug 2012 15:10:16 +0000 (+0200) Subject: EAPI 5: doheader and newheader helper functions X-Git-Tag: v2.2.0_alpha124~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e7e4c3720582a7ab938266e50e53d162f5248488;p=portage.git EAPI 5: doheader and newheader helper functions See bug #21310. --- diff --git a/bin/ebuild-helpers/doheader b/bin/ebuild-helpers/doheader new file mode 100755 index 000000000..9bbe5bc29 --- /dev/null +++ b/bin/ebuild-helpers/doheader @@ -0,0 +1,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 "$@" diff --git a/bin/ebuild-helpers/newheader b/bin/ebuild-helpers/newheader new file mode 120000 index 000000000..59a0db27b --- /dev/null +++ b/bin/ebuild-helpers/newheader @@ -0,0 +1 @@ +newins \ No newline at end of file