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
......@@ -8,9 +8,9 @@ fi
set -ex
find tests -type f \( -name '*.hs' -or -name '*.lhs' -or -name '*.c' -or -name '*.sh' \
-or -name '*.cabal' -or -name '*.hsc' -or -name '*.err' -or -name '*.out' -or -name "ghc*" \) -and -not -regex ".*/dist.*/.*" \
| awk '/Check.hs$|UnitTests|PackageTester|autogen|PackageTests.hs|IntegrationTests.hs|CreatePipe|^tests\/Test/ { next } { print }' \
git ls-files tests \
| awk '/\.(hs|lhs|c|sh|cabal|hsc|err|out)$|ghc/ { print } { next }' \
| awk '/Check.hs$|UnitTests|PackageTester|autogen|register.sh|PackageTests.hs|IntegrationTests.hs|CreatePipe|^tests\/Test/ { next } { print }' \
| LC_ALL=C sort \
| sed -e 's/^/ /' \
> source-file-list
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment