mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-30 18:12:08 +02:00
editor-wrapper: update to latest stable
Upgraded app-misc/editor-wrapper to version 4 on amd64, arm, x86. This is more to get us onto the Gentoo version and off our local one. BUG=chromium-os:11991 TEST=`cbuildbot chromiumos-sdk` worked Change-Id: Ie38f53ec8e25feff59373ccb5494cda62d6751ca Reviewed-on: https://gerrit.chromium.org/gerrit/19301 Tested-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: Matt Tennant <mtennant@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
32217f6fea
commit
ea9ec9afb4
26
sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/editor-wrapper-4.ebuild
vendored
Normal file
26
sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/editor-wrapper-4.ebuild
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/editor-wrapper/editor-wrapper-4.ebuild,v 1.7 2011/12/29 21:37:29 ulm Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
DESCRIPTION="Wrapper scripts that will execute EDITOR or PAGER"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_prepare() {
|
||||
sed -e 's/@VAR@/EDITOR/g' "${FILESDIR}/${P}.sh" >editor || die
|
||||
sed -e 's/@VAR@/PAGER/g' "${FILESDIR}/${P}.sh" >pager || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/libexec
|
||||
doexe editor pager
|
||||
}
|
17
sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/files/editor-wrapper-4.sh
vendored
Normal file
17
sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/files/editor-wrapper-4.sh
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
# Copyright 2009-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the MIT/X11 license
|
||||
|
||||
# Wrapper script, executes ${@VAR@} with arguments $@
|
||||
|
||||
if [ -z "${@VAR@}" ]; then
|
||||
# Try to get @VAR@ from system profile
|
||||
@VAR@=$(. /etc/profile >/dev/null 2>&1; echo "${@VAR@}")
|
||||
fi
|
||||
|
||||
if [ -z "${@VAR@}" ]; then
|
||||
echo "$0: The @VAR@ variable must be set" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec ${@VAR@} "$@"
|
8
sdk_container/src/third_party/portage-stable/metadata/md5-cache/app-misc/editor-wrapper-4
vendored
Normal file
8
sdk_container/src/third_party/portage-stable/metadata/md5-cache/app-misc/editor-wrapper-4
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
DEFINED_PHASES=install prepare
|
||||
DESCRIPTION=Wrapper scripts that will execute EDITOR or PAGER
|
||||
EAPI=4
|
||||
HOMEPAGE=http://www.gentoo.org/
|
||||
KEYWORDS=alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=MIT
|
||||
SLOT=0
|
||||
_md5_=ee90453669d3d94843fbd2e9cdfba7ac
|
Loading…
x
Reference in New Issue
Block a user