• A
    autogen.sh: Improve and generalize · 6d532553
    Andrea Bolognani 提交于
    The goal is twofold: firstly, we want to extend the script so
    that it can deal with more than a single git submodule, and
    secondly we'd like to reduce the amount of duplicated code.
    Moreover, since we're making heavy changes to the code anyway,
    we might as well make sure it follows a somewhat consistent
    coding style too.
    
    To reduce code duplication, we introduce a new --dry-run
    option, which can be used by third parties to figure out
    whether calling autogen.sh is necessary or not: this allows
    us to get rid of the reimplementation of part of the logic
    in cfg.mk and guarantee they'll never get out of sync.
    
    Other changes include: making dirty submodules checking and
    cleaning entirely independent of other operations; removing
    the use of 'set -e' and handling errors explicitly instead;
    better parsing of command line arguments.
    6d532553
cfg.mk 46.8 KB