summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2008-02-20 12:36:14 +0000
committerBenedikt Boehm <hollow@gentoo.org>2008-02-20 12:36:14 +0000
commitb8229b90702387388a81c3c0a30672812ab05e60 (patch)
tree781d69e2248fc4e59b51699a10b7db3f90d72a60 /eclass
parentRemove old ebuilds. Fixed guile and slib dependency. (diff)
downloadgentoo-2-b8229b90702387388a81c3c0a30672812ab05e60.tar.gz
gentoo-2-b8229b90702387388a81c3c0a30672812ab05e60.tar.bz2
gentoo-2-b8229b90702387388a81c3c0a30672812ab05e60.zip
add ecvs_clean and esvn_clean, bug #210708
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass23
1 files changed, 22 insertions, 1 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 6508d905010b..0d86b7d732b3 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.297 2008/02/15 07:43:45 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.298 2008/02/20 12:36:14 hollow Exp $
# @ECLASS: eutils.eclass
# @MAINTAINER:
@@ -49,6 +49,27 @@ ebeep() {
fi
}
+# @FUNCTION: ecvs_clean
+# @USAGE: <dir> [more dirs ...]
+# @DESCRIPTION:
+# Remove CVS directories recursiveley. Useful when a source tarball contains
+# internal CVS directories.
+ecvs_clean() {
+ [[ $# -gt 0 ]] || set -- .
+ find "$@" -type d -name 'CVS' -prune -print0 | xargs -0 rm -rf
+ find "$@" -type f -name '.cvs*' -print0 | xargs -0 rm -rf
+}
+
+# @FUNCTION: esvn_clean
+# @USAGE: <dir> [more dirs ...]
+# @DESCRIPTION:
+# Remove .svn directories recursiveley. Useful when a source tarball contains
+# internal Subversion directories.
+esvn_clean() {
+ [[ $# -gt 0 ]] || set -- .
+ find "$@" -type d -name '.svn' -prune -print0 | xargs -0 rm -rf
+}
+
# Default directory where patches are located
EPATCH_SOURCE="${WORKDIR}/patch"
# Default extension for patches