]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
aiaiai-sh-functions: re-order options to match example config
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 7 Mar 2014 00:22:58 +0000 (16:22 -0800)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 10 Mar 2014 15:03:35 +0000 (17:03 +0200)
This patch re-orders the parsing for the standard configuration
variables, in order to match what is in our example configuration. It
also updates the header comment to match.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
email/aiaiai-email-sh-functions

index f31581d984240b7275be5db7283b8bee48fc17c8..2e815bbf995d560da95572a40b2b9780443d03b4 100644 (file)
@@ -139,11 +139,12 @@ ini_config_get_or_die()
 # file:
 #
 # cfg_ownname, cfg_ownmail, cfg_adminname, cfg_adminmail, cfg_workdir,
-# cfg_jobs, cfg_signature, cfg_built_preamble.
+# cfg_jobs, cfg_preamble, cfg_signature, cfg_built_preamble
 #
-# Additinally, the following variables are defined:
-#   o cfg_preamble - contains the email preamble read from the file definded
-#     in email.preamble variable
+# Additionally, the following variables are set:
+#  o cfg_ownmail_local - the local portion of the ownmail address
+#  o cfg_ownmail_domain - the domain portion of the ownmail address
+#  o cfg_preamble - the contents of the file pointed to by the preamble file
 #
 # Usage: parse_config <cfgfile>
 parse_config()
@@ -156,10 +157,11 @@ parse_config()
        ini_config_get_or_die cfg_adminname      "$cfgfile" "global" "adminname"
        ini_config_get_or_die cfg_workdir        "$cfgfile" "global" "workdir"
        ini_config_get_or_die cfg_jobs           "$cfgfile" "global" "jobs"
-       ini_config_get_or_die cfg_signature      "$cfgfile" "global" "signature"
        ini_config_get_or_die cfg_preamble       "$cfgfile" "global" "preamble"
+       ini_config_get_or_die cfg_signature      "$cfgfile" "global" "signature"
        ini_config_get_or_die cfg_built_preamble "$cfgfile" "global" "built_preamble"
 
+       # Get the contents of the preamble file
        cfg_preamble="$(cat "$cfg_preamble")"
 
        # Get the local and domain parts of own e-mail address