2 # Copyright 1999-2011 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
5 if [[ $# -lt 1 ]] ; then
6 echo "!!! ${0##*/}: at least one argument needed" >&2
10 [[ " ${FEATURES} " == *" force-prefix "* ]] || \
11 case "$EAPI" in 0|1|2) ED=${D} ;; esac
19 if [ -e "${y}" ] ; then
20 if [ -f "${y}" ] ; then
22 sed -i -e "${mysed}" "${y}"
24 echo "${y} is not a regular file!" >&2
33 if [ $file_found = 0 ] ; then
34 echo "!!! ${0##*/}: $y does not exist" 1>&2