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

Diff of /eclass/eutils.eclass

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

Revision 1.49 Revision 1.50
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.49 2003/09/05 15:42:30 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.50 2003/09/05 16:42:45 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.
838# the proper offset from the script itself. 838# the proper offset from the script itself.
839unpack_makeself() { 839unpack_makeself() {
840 local src=$1 840 local src=$1
841 local skip=$2 841 local skip=$2
842 842
843 [ -z "${src}" ] && src=${A} 843 if [ -z "${src}" ] ; then
844 [ -e ./${src} ] \ 844 src="${DISTDIR}/${A}"
845 && src=${PWD}/${src} \ 845 else
846 if [ -e "${DISTDIR}/${src}" ] ; then
846 || src=${DISTDIR}/${src} 847 src="${DISTDIR}/${src}"
848 elif [ -e "${PWD}/${src}" ] ; then
849 src="${PWD}/${src}"
850 elif [ -e "${src}" ] ; then
851 src="${src}"
852 fi
853 fi
854 [ ! -e "${src}" ] && die "Could not find requested makeself archive ${src}"
855
847 local shrtsrc=`basename ${src}` 856 local shrtsrc=`basename ${src}`
848 echo ">>> Unpacking ${shrtsrc} to ${PWD}" 857 echo ">>> Unpacking ${shrtsrc} to ${PWD}"
849 if [ -z "${skip}" ] ; then 858 if [ -z "${skip}" ] ; then
850 local ver="`grep -a '#.*Makeself' ${src} | awk '{print $NF}'`" 859 local ver="`grep -a '#.*Makeself' ${src} | awk '{print $NF}'`"
851 local skip=0 860 local skip=0

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50

  ViewVC Help
Powered by ViewVC 1.1.20