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

Diff of /eclass/rpm.eclass

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

Revision 1.3 Revision 1.4
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/rpm.eclass,v 1.3 2003/06/21 13:47:34 liquidx Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/rpm.eclass,v 1.4 2003/06/21 14:22:18 liquidx Exp $
4 4
5# Author : Alastair Tse <liquidx@gentoo.org> (21 Jun 2003) 5# Author : Alastair Tse <liquidx@gentoo.org> (21 Jun 2003)
6# 6#
7# Convienence class for extracting RPMs 7# Convienence class for extracting RPMs
8# 8#
56 56
57 # find all tar.gz files and extract for srpms 57 # find all tar.gz files and extract for srpms
58 if [ "${prefix##*.}" = "src" ]; then 58 if [ "${prefix##*.}" = "src" ]; then
59 OLD_DISTDIR=${DISTDIR} 59 OLD_DISTDIR=${DISTDIR}
60 DISTDIR=${WORKDIR} 60 DISTDIR=${WORKDIR}
61 findopts="-name *.tar" 61 findopts="* -maxdepth 0 -name *.tar"
62 for t in *.tar.gz *.tgz *.tbz2 *.tar.bz2 *.zip *.ZIP; do 62 for t in *.tar.gz *.tgz *.tbz2 *.tar.bz2 *.zip *.ZIP; do
63 findopts="${findopts} -o -name ${t}" 63 findopts="${findopts} -o -name ${t}"
64 done 64 done
65 for t in $(find * ${findopts} | xargs); do 65 for t in $(find ${findopts} | xargs); do
66 unpack ${t} 66 unpack ${t}
67 rm -f ${t} 67 rm -f ${t}
68 done 68 done
69 DISTDIR=${OLD_DISTDIR} 69 DISTDIR=${OLD_DISTDIR}
70 fi 70 fi

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20