| 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.25 2003/03/03 21:42:05 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>...) |
|
|
576 | edos2unix() { |
|
|
577 | for f in $@ ; do |
|
|
578 | cp ${f} ${T}/ |
|
|
579 | sed 's/\r$//' ${T}/${f} > ${f} |
|
|
580 | done |
|
|
581 | } |