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
This commit is contained in:
Bart Van Assche
2020-05-16 15:54:19 +00:00
parent d12b0a0d91
commit 0736635b62

View File

@@ -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
}