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

Diff of /eclass/eutils.eclass

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

Revision 1.216 Revision 1.217
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.216 2005/11/09 05:57:17 mr_bones_ Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.217 2005/11/18 03:29:38 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.
1084# Usage: unpack_makeself [file to unpack] [offset] [tail|dd] 1084# Usage: unpack_makeself [file to unpack] [offset] [tail|dd]
1085# - If the file is not specified then unpack will utilize ${A}. 1085# - If the file is not specified then unpack will utilize ${A}.
1086# - If the offset is not specified then we will attempt to extract 1086# - If the offset is not specified then we will attempt to extract
1087# the proper offset from the script itself. 1087# the proper offset from the script itself.
1088unpack_makeself() { 1088unpack_makeself() {
1089 local src_input=${1:-${A}}
1089 local src=$(find_unpackable_file "$1") 1090 local src=$(find_unpackable_file "${src_input}")
1090 local skip=$2 1091 local skip=$2
1091 local exe=$3 1092 local exe=$3
1092 1093
1093 [[ -z ${src} ]] && die "Could not locate source for '$1'" 1094 [[ -z ${src} ]] && die "Could not locate source for '${src_input}'"
1094 1095
1095 local shrtsrc=$(basename "${src}") 1096 local shrtsrc=$(basename "${src}")
1096 echo ">>> Unpacking ${shrtsrc} to ${PWD}" 1097 echo ">>> Unpacking ${shrtsrc} to ${PWD}"
1097 if [[ -z ${skip} ]] ; then 1098 if [[ -z ${skip} ]] ; then
1098 local ver=$(grep -a '#.*Makeself' "${src}" | awk '{print $NF}') 1099 local ver=$(grep -a '#.*Makeself' "${src}" | awk '{print $NF}')

Legend:
Removed from v.1.216  
changed lines
  Added in v.1.217

  ViewVC Help
Powered by ViewVC 1.1.20