mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-28 09:20:18 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user