Skip to content
Snippets Groups Projects
  • Matthias Schiffer's avatar
    ee5ec5af
    build: rewrite features.sh in Lua · ee5ec5af
    Matthias Schiffer authored
    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.
    ee5ec5af
    History
    build: rewrite features.sh in Lua
    Matthias Schiffer authored
    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.