Std.shlib: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
Line 12: Line 12:
:<br>https://github.com/NovaOrdis/std.shlib<br><br>
:<br>https://github.com/NovaOrdis/std.shlib<br><br>
</blockquote>
</blockquote>
=Version=
<pre>
std_shlib_version=1
</pre>
Each change must be followed by a version increment.


=Integration=
=Integration=

Latest revision as of 09:54, 4 April 2016

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 $@