setup-all-dchroots: documentation comments
authorPeter Palfrader <peter@palfrader.org>
Thu, 16 Aug 2018 08:04:53 +0000 (10:04 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 16 Aug 2018 08:04:53 +0000 (10:04 +0200)
modules/schroot/files/setup-all-dchroots

index 7628081..58d0eca 100755 (executable)
@@ -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)