Skip to content
Snippets Groups Projects
Commit 6da012e8 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Make gen-extra-source-files more sophisticated.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 13ee548e
No related branches found
No related tags found
No related merge requests found
...@@ -8,9 +8,9 @@ fi ...@@ -8,9 +8,9 @@ fi
set -ex set -ex
find tests -type f \( -name '*.hs' -or -name '*.lhs' -or -name '*.c' -or -name '*.sh' \ git ls-files tests \
-or -name '*.cabal' -or -name '*.hsc' -or -name '*.err' -or -name '*.out' -or -name "ghc*" \) -and -not -regex ".*/dist.*/.*" \ | awk '/\.(hs|lhs|c|sh|cabal|hsc|err|out)$|ghc/ { print } { next }' \
| awk '/Check.hs$|UnitTests|PackageTester|autogen|PackageTests.hs|IntegrationTests.hs|CreatePipe|^tests\/Test/ { next } { print }' \ | awk '/Check.hs$|UnitTests|PackageTester|autogen|register.sh|PackageTests.hs|IntegrationTests.hs|CreatePipe|^tests\/Test/ { next } { print }' \
| LC_ALL=C sort \ | LC_ALL=C sort \
| sed -e 's/^/ /' \ | sed -e 's/^/ /' \
> source-file-list > source-file-list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment