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

Diff of /eclass/eutils.eclass

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

Revision 1.23 Revision 1.24
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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/eutils.eclass,v 1.23 2003/03/01 03:38:40 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.24 2003/03/03 21:27:15 vapier Exp $
4# 4#
5# Author: Martin Schlemmer <azarah@gentoo.org> 5# Author: Martin Schlemmer <azarah@gentoo.org>
6# 6#
7# This eclass is for general purpose functions that most ebuilds 7# This eclass is for general purpose functions that most ebuilds
8# have to implement themselves. 8# have to implement themselves.
566 local oldsandbox="${oldsandbox}" 566 local oldsandbox="${oldsandbox}"
567 export SANDBOX_ON="0" 567 export SANDBOX_ON="0"
568 groupadd ${opts} ${egroup} || die "enewgroup failed" 568 groupadd ${opts} ${egroup} || die "enewgroup failed"
569 export SANDBOX_ON="${oldsandbox}" 569 export SANDBOX_ON="${oldsandbox}"
570} 570}
571
572# Simple script to replace 'dos2unix' binaries
573# vapier@gentoo.org
574#
575# edos2unix(file, <more files>...)
576edos2unix() {
577 for f in $@ ; do
578 cp ${f} ${T}/
579 sed 's/\r$//' ${T}/${f}.old > ${f}
580 done
581}

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

  ViewVC Help
Powered by ViewVC 1.1.20