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

Diff of /eclass/eutils.eclass

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

Revision 1.203 Revision 1.204
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.203 2005/09/27 12:38:56 ka0ttic Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.204 2005/10/07 04:15:20 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.
493 if [[ ! -e ${eshell} ]] ; then 493 if [[ ! -e ${eshell} ]] ; then
494 eerror "A shell was specified but it does not exist !" 494 eerror "A shell was specified but it does not exist !"
495 die "${eshell} does not exist" 495 die "${eshell} does not exist"
496 fi 496 fi
497 else 497 else
498 for shell in /sbin/nologin /usr/sbin/nologin /bin/false /usr/bin/false /dev/null; do 498 for shell in /sbin/nologin /usr/sbin/nologin /bin/false /usr/bin/false /dev/null ; do
499 [[ -x ${ROOT}${shell} ]] && break; 499 [[ -x ${ROOT}${shell} ]] && break
500 done 500 done
501 501
502 if [[ ${shell} == "/dev/null" ]]; then 502 if [[ ${shell} == "/dev/null" ]] ; then
503 eerror "Unable to identify the shell to use" 503 eerror "Unable to identify the shell to use"
504 die "Unable to identify the shell to use" 504 die "Unable to identify the shell to use"
505 fi 505 fi
506 506
507 eshell=${shell} 507 eshell=${shell}
856Exec=${exec} 856Exec=${exec}
857Path=${path} 857Path=${path}
858Icon=${icon} 858Icon=${icon}
859Categories=Application;${type};" > "${desktop}" 859Categories=Application;${type};" > "${desktop}"
860 860
861 (
862 # wrap the env here so that the 'insinto' call
863 # doesn't corrupt the env of the caller
861 insinto /usr/share/applications 864 insinto /usr/share/applications
862 doins "${desktop}" 865 doins "${desktop}"
863 866 )
864 return 0
865} 867}
866 868
867# Make a GDM/KDM Session file 869# Make a GDM/KDM Session file
868# 870#
869# make_desktop_entry(<title>, <command>) 871# make_desktop_entry(<title>, <command>)

Legend:
Removed from v.1.203  
changed lines
  Added in v.1.204

  ViewVC Help
Powered by ViewVC 1.1.20