From e7e4c3720582a7ab938266e50e53d162f5248488 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulrich=20M=C3=BCller?= Date: Fri, 31 Aug 2012 17:10:16 +0200 Subject: [PATCH] EAPI 5: doheader and newheader helper functions See bug #21310. --- bin/ebuild-helpers/doheader | 21 +++++++++++++++++++++ bin/ebuild-helpers/newheader | 1 + 2 files changed, 22 insertions(+) create mode 100755 bin/ebuild-helpers/doheader create mode 120000 bin/ebuild-helpers/newheader 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 -- 2.26.2