diff options
Diffstat (limited to 'eclass/vcs-clean.eclass')
-rw-r--r-- | eclass/vcs-clean.eclass | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/vcs-clean.eclass b/eclass/vcs-clean.eclass index 991f680582f4..e4c61ac7164a 100644 --- a/eclass/vcs-clean.eclass +++ b/eclass/vcs-clean.eclass @@ -23,9 +23,11 @@ _VCS_CLEAN_ECLASS=1 # Remove CVS directories and .cvs* files recursively. Useful when a # source tarball contains internal CVS directories. Defaults to ${PWD}. ecvs_clean() { + debug-print-function ${FUNCNAME} "${@}" + [[ $# -eq 0 ]] && set -- . find "$@" '(' -type d -name 'CVS' -prune -o -type f -name '.cvs*' ')' \ - -exec rm -rf '{}' + + -exec rm -rf '{}' + || die } # @FUNCTION: esvn_clean @@ -34,8 +36,10 @@ ecvs_clean() { # Remove .svn directories recursively. Useful when a source tarball # contains internal Subversion directories. Defaults to ${PWD}. esvn_clean() { + debug-print-function ${FUNCNAME} "${@}" + [[ $# -eq 0 ]] && set -- . - find "$@" -type d -name '.svn' -prune -exec rm -rf '{}' + + find "$@" -type d -name '.svn' -prune -exec rm -rf '{}' + || die } # @FUNCTION: egit_clean @@ -44,8 +48,10 @@ esvn_clean() { # Remove .git* directories recursively. Useful when a source tarball # contains internal Git directories. Defaults to ${PWD}. egit_clean() { + debug-print-function ${FUNCNAME} "${@}" + [[ $# -eq 0 ]] && set -- . - find "$@" -type d -name '.git*' -prune -exec rm -rf '{}' + + find "$@" -type d -name '.git*' -prune -exec rm -rf '{}' + || die } fi |