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

Diff of /eclass/eutils.eclass

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

Revision 1.56 Revision 1.57
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.56 2003/09/22 21:08:27 wolf31o2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.57 2003/09/22 21:39:11 wolf31o2 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.
935 fi 935 fi
936 [ ! -e "${src}" ] && die "Could not find requested license ${src}" 936 [ ! -e "${src}" ] && die "Could not find requested license ${src}"
937 937
938 # here is where we check for the license... 938 # here is where we check for the license...
939 # if we don't find one, we ask the user for it 939 # if we don't find one, we ask the user for it
940 if [ ! -d /usr/share/licenses ]; then
941 mkdir -p /usr/share/licenses
942 fi
940 if [ -f /usr/share/licenses/${LICENSE} ]; then 943 if [ -f /usr/share/licenses/${LICENSE} ]; then
941 einfo "The license for this application has already been accepted." 944 einfo "The license for this application has already been accepted."
942 else 945 else
943 ewarn "You MUST accept this license for installation to continue." 946 ewarn "You MUST accept this license for installation to continue."
944 eerror "If you CTRL+C out of this, the install will not run!" 947 eerror "If you CTRL+C out of this, the install will not run!"

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57

  ViewVC Help
Powered by ViewVC 1.1.20