From: Peter Palfrader Date: Thu, 16 Aug 2018 08:04:53 +0000 (+0200) Subject: setup-all-dchroots: documentation comments X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=25c2c4e1e742e042acd116cd1926f8d9f13673fb;p=mirror%2Fdsa-puppet.git setup-all-dchroots: documentation comments --- diff --git a/modules/schroot/files/setup-all-dchroots b/modules/schroot/files/setup-all-dchroots index 76280816b..58d0eca44 100755 --- a/modules/schroot/files/setup-all-dchroots +++ b/modules/schroot/files/setup-all-dchroots @@ -78,6 +78,13 @@ OPTIONS: EOF } +########## +# "main" +########## + + +# parse options +########## EXTRAARGS="" while getopts "cu" OPTION do @@ -97,6 +104,8 @@ do done shift $(($OPTIND - 1)) +# parse arguments +########## if [ "$#" -gt 1 ]; then usage >&2 exit 1 @@ -115,6 +124,8 @@ else MODE=porterbox fi +# figure out whether to be verbose or not +########## if [ -t 0 ] ; then SILENT="" else @@ -122,6 +133,8 @@ else fi +# get list of archs based on DPKGARCH +########## archs="$DPKGARCH" case "$DPKGARCH" in amd64)