/[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.19
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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.19 2011/10/31 17:39:52 vapier 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
11inherit user
12 10
13# treecopy orig1 orig2 orig3 .... dest 11# treecopy orig1 orig2 orig3 .... dest
14# 12#
15# mimic cp --parents copy, but working on BSD userland as well 13# mimic cp --parents copy, but working on BSD userland as well
16treecopy() { 14treecopy() {
127 opts=${fs#* } 125 opts=${fs#* }
128 fs=${fs%% *} 126 fs=${fs%% *}
129 echo "${point// /\040} ${node// /\040} ${fs%% *} ${opts// /\040}" 127 echo "${point// /\040} ${node// /\040} ${fs%% *} ${opts// /\040}"
130 done 128 done
131} 129}
130
131_dead_portability_user_funcs() { die "if you really need this, please file a bug for base-system@gentoo.org"; }
132egethome() { _dead_portability_user_funcs; }
133egetshell() { _dead_portability_user_funcs; }
134is-login-disabled() { _dead_portability_user_funcs; }

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

  ViewVC Help
Powered by ViewVC 1.1.20