From 0736635b62459d2a54fade2719c69fd3adc9d640 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 16 May 2020 15:54:19 +0000 Subject: [PATCH] scripts/list-source-files: exclude build artifacts when not in vcs tree git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8921 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/list-source-files | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/list-source-files b/scripts/list-source-files index 3ab87a93f..06b22a3cc 100755 --- a/scripts/list-source-files +++ b/scripts/list-source-files @@ -39,7 +39,17 @@ list_source_files() { hg manifest fi else - ( cd "$d" && find . -type f -o -type l | sed 's|^\./||' ) + ( + cd "$d" && + find . -type f -o -type l | \ + sed -e 's|^\./||' \ + -e '\|\.k\{0,1\}o\(\.\(cm\)\{0,1\}d\)\{0,1\}$|d' \ + -e '\|\.mod\(\.c\)\{0,1\}$|d' \ + -e '\|/conftest/.*/result-.*\.txt$|d' \ + -e '\|/modules\.order$|d' \ + -e '\,/Module\.\(symver\|marker\)s$,d' \ + -e '\,/\.tmp_versions\(/\|$\),d' + ) fi }