forked from quixdb/squash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.configure-custom.sh
executable file
·55 lines (50 loc) · 1.37 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
#!/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 \
density \
fari \
fastlz \
gipfeli \
heatshrink \
lz4 \
lzf \
lzg \
lzham \
lzjb \
lzma \
lzo \
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}"
declare DISABLE_ENABLE_${NAME_UC}_DOC="disable the ${plugin} plugin"
done
ENABLE_VARS="coverage|yes|ENABLE_COVERAGE"
ENABLE_ENABLE_COVERAGE_DOC="enable coverage analysis"
for plugin in \
csc \
doboz \
pithy; do
NAME_UC=$(echo $plugin | tr '[:lower:]' '[:upper:]' | sed 's/[^A-Z0-9]/_/g')
ENABLE_VARS="${ENABLE_VARS} ${plugin}|yes|ENABLE_${NAME_UC}"
declare 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"