-
Notifications
You must be signed in to change notification settings - Fork 53
/
.configure-custom.sh
executable file
·59 lines (54 loc) · 1.59 KB
/
.configure-custom.sh
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/sh
DISABLE_VARS="external|yes|FORCE_IN_TREE_DEPENDENCIES"
DISABLE_FORCE_IN_TREE_DEPENDENCIES_DOC="force in-tree dependencies, even when a system library is available"
for plugin in \
brieflz \
brotli \
bsc \
bzip2 \
copy \
crush \
fari \
fastlz \
gipfeli \
heatshrink \
libdeflate \
lz4 \
lzf \
lzfse \
lzg \
lzham \
lzjb \
lzma \
lzo \
miniz \
ms-compress \
ncompress \
quicklz \
snappy \
wflz \
yalz77 \
zlib \
zlib-ng \
zling \
zpaq \
zstd; do
NAME_UC=$(echo $plugin | tr '[:lower:]' '[:upper:]' | sed 's/[^A-Z0-9]/_/g')
DISABLE_VARS="${DISABLE_VARS} ${plugin}|no|ENABLE_${NAME_UC}"
eval "DISABLE_ENABLE_${NAME_UC}_DOC=\"disable the ${plugin} plugin\""
done
ENABLE_VARS="coverage|yes|ENABLE_COVERAGE undefined|yes|ALLOW_UNDEFINED installed-tests|yes|ENABLE_INSTALLED_TESTS"
ENABLE_ENABLE_COVERAGE_DOC="enable coverage analysis"
ENABLE_ALLOW_UNDEFINED_DOC="allow plugins to leverage undefined behavior"
ENABLE_ENABLE_INSTALLED_TESTS_DOC="install unit tests"
for plugin in \
csc \
density \
doboz; do
NAME_UC=$(echo $plugin | tr '[:lower:]' '[:upper:]' | sed 's/[^A-Z0-9]/_/g')
ENABLE_VARS="${ENABLE_VARS} ${plugin}|yes|ENABLE_${NAME_UC}"
eval "ENABLE_ENABLE_${NAME_UC}_DOC=\"enable the ${plugin} plugin (disabled due to bugs)\""
done
WITH_VARS="plugin-dir|path|PLUGIN_DIRECTORY search-path|path|SEARCH_PATH"
WITH_PLUGIN_DIRECTORY_DOC="directory to install plugins to [LIBDIR/squash/API_VERSION/plugins]"
WITH_SEARCH_PATH_DOC="directory to search for plugins by default"