From 25c2c4e1e742e042acd116cd1926f8d9f13673fb Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 16 Aug 2018 10:04:53 +0200 Subject: [PATCH] setup-all-dchroots: documentation comments --- modules/schroot/files/setup-all-dchroots | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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) -- 2.20.1