eutils.eclass: Add egit_clean()

Signed-off-by: Justin Lecher <jlec@gentoo.org>
This commit is contained in:
Justin Lecher
2016-01-22 22:03:03 +01:00
parent 0dbd28d2e9
commit 38e617b4cd
+10
View File
@@ -54,6 +54,16 @@ esvn_clean() {
find "$@" -type d -name '.svn' -prune -print0 | xargs -0 rm -rf
}
# @FUNCTION: egit_clean
# @USAGE: [list of dirs]
# @DESCRIPTION:
# Remove .git* directories/files recursiveley. Useful when a source tarball
# contains internal Git directories. Defaults to $PWD.
egit_clean() {
[[ -z $* ]] && set -- .
find "$@" -type d -name '.git*' -prune -print0 | xargs -0 rm -rf
}
# @FUNCTION: estack_push
# @USAGE: <stack> [items to push]
# @DESCRIPTION: