* [gentoo-commits] gentoo-x86 commit in sys-freebsd/ubin-wrappers/files: dowrap
@ 2012-06-17 23:21 Richard Yao (ryao)
0 siblings, 0 replies; 2+ messages in thread
From: Richard Yao (ryao) @ 2012-06-17 23:21 UTC (permalink / raw
To: gentoo-commits
ryao 12/06/17 23:21:19
Added: dowrap
Log:
New ebuild: /usr/bin wrapper scripts for FreeBSD script compatibility
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Revision Changes Path
1.1 sys-freebsd/ubin-wrappers/files/dowrap
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/ubin-wrappers/files/dowrap?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/ubin-wrappers/files/dowrap?rev=1.1&content-type=text/plain
Index: dowrap
===================================================================
#!/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
if [[ $# -lt 1 ]] ; then
helpers_die "${0##*/}: at least one argument needed"
exit 1
fi
if [[ ! -d ${ED}${DESTTREE} ]] ; then
install -d "${ED}${DESTTREE}" || { helpers_die "${0##*/}: failed to install ${ED}${DESTTREE}"; exit 2; }
fi
ret=0
for x in "$@" ; do
if [[ -e ${x} ]] ; then
echo "#!/bin/sh" > "${ED}${DESTTREE}/$(basename ${x})"
echo "exec ${x} "'${1:+"$@"}' >> "${ED}${DESTTREE}/$(basename ${x})"
chmod 0755 "${ED}${DESTTREE}/$(basename ${x})"
chown ${PORTAGE_INST_UID:-0}:${PORTAGE_INST_GID:-0} "${ED}${DESTTREE}/$(basename ${x})"
else
echo "!!! ${0##*/}: $x does not exist" 1>&2
false
fi
((ret|=$?))
done
[[ $ret -ne 0 ]] && helpers_die "${0##*/} failed"
exit ${ret}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in sys-freebsd/ubin-wrappers/files: dowrap
@ 2015-05-30 8:28 Ulrich Mueller (ulm)
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Mueller (ulm) @ 2015-05-30 8:28 UTC (permalink / raw
To: gentoo-commits
ulm 15/05/30 08:28:18
Removed: dowrap
Log:
[QA] Do not rely on executable script in files/, do not call Portage internal functions, bug 550540.
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-30 8:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-17 23:21 [gentoo-commits] gentoo-x86 commit in sys-freebsd/ubin-wrappers/files: dowrap Richard Yao (ryao)
-- strict thread matches above, loose matches on Subject: below --
2015-05-30 8:28 Ulrich Mueller (ulm)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox