/[gentoo-x86]/eclass/portability.eclass
Gentoo

Diff of /eclass/portability.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.18 Revision 1.23
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.18 2011/10/27 07:16:08 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.23 2011/12/27 17:55:12 fauli Exp $
4# 4#
5# Author: Diego Pettenò <flameeyes@gentoo.org> 5# Author: Diego Pettenò <flameeyes@gentoo.org>
6# 6#
7# This eclass is created to avoid using non-portable GNUisms inside ebuilds 7# This eclass is created to avoid using non-portable GNUisms inside ebuilds
8# 8#
9# NB: If you add anything, please comment it! 9# NB: If you add anything, please comment it!
10 10
11inherit user 11if [[ ${___ECLASS_ONCE_PORTABILITY} != "recur -_+^+_- spank" ]] ; then
12___ECLASS_ONCE_PORTABILITY="recur -_+^+_- spank"
12 13
13# treecopy orig1 orig2 orig3 .... dest 14# treecopy orig1 orig2 orig3 .... dest
14# 15#
15# mimic cp --parents copy, but working on BSD userland as well 16# mimic cp --parents copy, but working on BSD userland as well
16treecopy() { 17treecopy() {
127 opts=${fs#* } 128 opts=${fs#* }
128 fs=${fs%% *} 129 fs=${fs%% *}
129 echo "${point// /\040} ${node// /\040} ${fs%% *} ${opts// /\040}" 130 echo "${point// /\040} ${node// /\040} ${fs%% *} ${opts// /\040}"
130 done 131 done
131} 132}
133
134_dead_portability_user_funcs() { die "if you really need this, please file a bug for base-system@gentoo.org"; }
135is-login-disabled() { _dead_portability_user_funcs; }
136
137fi

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.20