From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 09BCA138010 for ; Fri, 31 Aug 2012 15:21:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 11320E05F2; Fri, 31 Aug 2012 15:21:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CFBD0E05F2 for ; Fri, 31 Aug 2012 15:21:23 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 21C3333D8E1 for ; Fri, 31 Aug 2012 15:21:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id CF1FBE543C for ; Fri, 31 Aug 2012 15:21:21 +0000 (UTC) From: "Ulrich Mueller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Mueller" Message-ID: <1346426416.e7e4c3720582a7ab938266e50e53d162f5248488.ulm@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ebuild-helpers/ X-VCS-Repository: proj/portage X-VCS-Files: bin/ebuild-helpers/doheader bin/ebuild-helpers/newheader X-VCS-Directories: bin/ebuild-helpers/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Mueller X-VCS-Revision: e7e4c3720582a7ab938266e50e53d162f5248488 X-VCS-Branch: master Date: Fri, 31 Aug 2012 15:21:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: abec3e0a-6b11-46f6-82bd-96361c3255e5 X-Archives-Hash: 7759dc8762a495761185139451d6d237 commit: e7e4c3720582a7ab938266e50e53d162f5248488 Author: Ulrich Müller gentoo org> AuthorDate: Fri Aug 31 15:10:16 2012 +0000 Commit: Ulrich Mueller gentoo org> CommitDate: Fri Aug 31 15:20:16 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=e7e4c372 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(+), 0 deletions(-) diff --git a/bin/ebuild-helpers/doheader b/bin/ebuild-helpers/doheader new file mode 100755 index 0000000..9bbe5bc --- /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 0000000..59a0db2 --- /dev/null +++ b/bin/ebuild-helpers/newheader @@ -0,0 +1 @@ +newins \ No newline at end of file