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

Diff of /eclass/portability.eclass

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

Revision 1.10 Revision 1.11
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.10 2006/11/10 15:56:59 uberlord Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.11 2007/01/01 22:27:01 swegener 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#
137 local point= node= fs= opts= foo= 137 local point= node= fs= opts= foo=
138 138
139 # Linux has /proc/mounts which should always exist 139 # Linux has /proc/mounts which should always exist
140 if [[ $(uname -s) == "Linux" ]] ; then 140 if [[ $(uname -s) == "Linux" ]] ; then
141 while read node point fs opts foo ; do 141 while read node point fs opts foo ; do
142 echo "${point} ${node} ${fs} ${opts}" 142 echo "${point} ${node} ${fs} ${opts}"
143 done < /proc/mounts 143 done < /proc/mounts
144 return 144 return
145 fi 145 fi
146 146
147 # OK, pray we have a -p option that outputs mounts in fstab format 147 # OK, pray we have a -p option that outputs mounts in fstab format
148 # using tabs as the seperator. 148 # using tabs as the seperator.
149 # Then pray that there are no tabs in the either. 149 # Then pray that there are no tabs in the either.

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20