Std.shlib

From NovaOrdis Knowledge Base
Revision as of 09:54, 4 April 2016 by Ovidiu (talk | contribs) (→‎GitHub)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Overview

Common bash functionality, such as fail and debug, and the logic to parse the corresponding command line switches.

GitHub


https://github.com/NovaOrdis/std.shlib

Version

std_shlib_version=1

Each change must be followed by a version increment.

Integration

f=$(dirname $0)/std.shib; [ -f ${f} ] && . ${f} || { echo "${f} not found" 1>&2; exit 1; }

function main() {

    process-common-arguments $@

    for i in ${args}; do
        # process remaining parameters as ${i}
    done
}

main $@