/
list-dist-files.sh.in
executable file
·41 lines (33 loc) · 1.17 KB
/
list-dist-files.sh.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env sh
set -e
finder () {
test -d "$1" || return 0
@FIND@ "$@" -type f | sort -bdi | xargs printf ' %s'
}
printf '%s' "SILEDATA ="
finder core -name '*.lua' -not -name '*_spec.lua' -not -name 'version.lua' -not -name 'features.lua' -not -name 'pathsetup.lua'
finder classes inputters languages outputters packages shapers typesetters pagebuilders -name '*.lua' -not -name '*_spec.lua'
finder classes i18n packages -name '*.ftl'
finder packages -name '*.svg'
printf '\n%s' "LUALIBRARIES ="
finder lua-libraries -name '*.lua'
printf '\n%s' "LUAMODULES ="
finder lua_modules -not -name "'*~'"
printf '\n%s' "_TESTSRCS :="
finder tests -maxdepth 1 -name '*.sil'
finder tests -maxdepth 1 -name '*.xml'
finder tests -maxdepth 1 -name '*.lua'
finder tests -maxdepth 1 -name '*.nil'
printf '\n%s' "_TESTPREVIEWS ?="
{
finder tests -maxdepth 1 -name '*.sil'
finder tests -maxdepth 1 -name '*.xml'
finder tests -maxdepth 1 -name '*.lua'
finder tests -maxdepth 1 -name '*.nil'
} |
xargs @GREP@ -L KNOWNBAD |
xargs printf ' %s'
printf '\n%s' "BUSTEDSPECS ?="
finder . -maxdepth 1 -name '*_spec.lua'
printf '\n%s' "TESTEXPECTS ?="
finder tests -maxdepth 1 -name '*.expected'