mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
eutils.eclass: Add egit_clean()
Signed-off-by: Justin Lecher <jlec@gentoo.org>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user