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

Diff of /eclass/eutils.eclass

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

Revision 1.224 Revision 1.225
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/eutils.eclass,v 1.224 2006/02/17 22:18:19 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.225 2006/02/18 10:50:10 flameeyes 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.
385 ${exe} "${tmp}" || ${exe} -p "${tmp}" 385 ${exe} "${tmp}" || ${exe} -p "${tmp}"
386 echo "${tmp}" 386 echo "${tmp}"
387 else 387 else
388 if [[ ${exe} == "touch" ]] ; then 388 if [[ ${exe} == "touch" ]] ; then
389 [[ ${USERLAND} == "GNU" ]] \ 389 [[ ${USERLAND} == "GNU" ]] \
390 && exe="-p" \ 390 && mktemp -p "${topdir}" \
391 || exe="-t" 391 || TMPDIR="${topdir}" mktemp -t tmp
392 else 392 else
393 [[ ${USERLAND} == "GNU" ]] \ 393 [[ ${USERLAND} == "GNU" ]] \
394 && exe="-d" \ 394 && mktemp -d "${topdir}" \
395 || exe="-dt"
396 fi
397 TMPDIR="${topdir}" mktemp ${exe} tmp 395 || TMPDIR="${topdir}" mktemp -dt tmp
396 fi
398 fi 397 fi
399} 398}
400 399
401# Small wrapper for getent (Linux), nidump (Mac OS X), 400# Small wrapper for getent (Linux), nidump (Mac OS X),
402# and pw (FreeBSD) used in enewuser()/enewgroup() 401# and pw (FreeBSD) used in enewuser()/enewgroup()

Legend:
Removed from v.1.224  
changed lines
  Added in v.1.225

  ViewVC Help
Powered by ViewVC 1.1.20