gluon/scripts
Matthias Schiffer 9b3ee477fa
Rewrite features.sh in Lua (#2045)
* build: target_config_lib: introduce concat_list helper

* build: rewrite features.sh in Lua

The `features` file is converted to a Lua-based DSL.

A helper function `_` is used in the DSL; this will return the original
string for enabled features, and nil for disabled features. This allows
to use boolean operations on features without making the code too
verbose.

Besides having more readable and robust code, this also fixes the bug
that all files `packages/*/features` were evaluated instead of only
using the feature definitions of currently active feeds.

* build: add luacheck support for package/features
2020-07-04 22:07:55 +02:00
..
check_site.lua scripts: check_site: add need_number_range check 2020-04-30 01:54:35 +02:00
clean_output.lua scripts: avoid global variables in target handler scripts 2019-06-18 01:34:45 +02:00
copy_output.lua openwrt: Store Kernel Debug-Info (#1971) 2020-06-04 22:35:58 +02:00
default_feeds.sh build: ignore deactivated feeds 2020-05-12 19:46:36 +02:00
domain_aliases.lua gluon-core: add domain aliases and pretty name 2018-01-26 12:32:47 +01:00
feature_lib.lua build: rewrite features.sh in Lua 2020-07-01 20:35:22 +02:00
feeds.sh build: allow overriding the base feed list 2020-04-09 14:30:44 +02:00
filesize.sh treewide: solve shellcheck warnings 2019-12-14 18:35:11 +01:00
generate_manifest.lua scripts: generate_manifest: remove obsolete manifest lines (#2067) 2020-07-04 22:07:25 +02:00
lint-lua.sh build: add make targets lint, lint-sh, lint-lua 2019-12-29 15:18:50 +01:00
lint-sh.sh build: add make targets lint, lint-sh, lint-lua 2019-12-29 15:18:50 +01:00
modules.sh treewide: solve shellcheck warnings 2019-12-14 18:35:11 +01:00
patch.sh treewide: solve shellcheck warnings 2019-12-14 18:35:11 +01:00
rfc3339date.lua scripts/rfc3339date.lua: fix pattern validity 2014-07-21 03:44:53 +02:00
sha256sum.sh treewide: solve shellcheck warnings 2019-12-14 18:35:11 +01:00
site_config.lua Switch to Lua for target definitions 2019-06-15 23:34:07 +02:00
target_config_check.lua build: target_config_check: make check more lenient 2020-06-05 22:27:10 +02:00
target_config_lib.lua build: rewrite features.sh in Lua 2020-07-01 20:35:22 +02:00
target_config.lua build: remove now-unneeded function from target_config_lib.lua 2020-05-31 02:20:58 +02:00
target_lib.lua build: target_lib: allow to specify multiple factory_ext values 2020-05-31 02:20:58 +02:00
update-patches.sh scripts: update-patches: fix shellcheck 0.7.1 lint 2020-05-25 01:10:18 +02:00
update.sh treewide: solve shellcheck warnings 2019-12-14 18:35:11 +01:00