/[gentoo-x86]/eclass/python-distutils-ng.eclass
Gentoo

Diff of /eclass/python-distutils-ng.eclass

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

Revision 1.17 Revision 1.18
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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/Attic/python-distutils-ng.eclass,v 1.17 2012/05/05 18:00:21 floppym Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/python-distutils-ng.eclass,v 1.18 2012/05/05 18:03:33 floppym Exp $
4 4
5# @ECLASS: python-distutils-ng 5# @ECLASS: python-distutils-ng
6# @MAINTAINER: 6# @MAINTAINER:
7# Python herd <python@gentoo.org> 7# Python herd <python@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
191# script to ${T} directory and later running python-distutils-ng_doscript on it. 191# script to ${T} directory and later running python-distutils-ng_doscript on it.
192# script_file_path has to be a full path relative to ${D}. 192# script_file_path has to be a full path relative to ${D}.
193python-distutils-ng_redoscript() { 193python-distutils-ng_redoscript() {
194 local sbn="$(basename "${1}")" 194 local sbn="$(basename "${1}")"
195 mkdir -p "${T}/_${sbn}/" || die "failed to create directory" 195 mkdir -p "${T}/_${sbn}/" || die "failed to create directory"
196 mv "${D}/${1}" "${T}/_${sbn}/${sbn}" || die "failed to move file" 196 mv "${D}${1}" "${T}/_${sbn}/${sbn}" || die "failed to move file"
197 python-distutils-ng_doscript "${T}/_${sbn}/${sbn}" "${2}" 197 python-distutils-ng_doscript "${T}/_${sbn}/${sbn}" "${2}"
198} 198}
199 199
200# @FUNCTION: python-distutils-ng_doscript 200# @FUNCTION: python-distutils-ng_doscript
201# @USAGE: script_file_name [destination_directory] 201# @USAGE: script_file_name [destination_directory]

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20