[PATCH 06/15] email-sh-functions: rename cfg_descr

Artem Bityutskiy dedekind1 at gmail.com
Wed Feb 5 07:10:35 PST 2014


From: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>

All the configuration variables we use internally have the same name as the
corresponding configuration option. The only exception is 'cfg_descr'. Let's
re-name it to 'cfg_description' to match this pattern and be consistent.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
---
 email/aiaiai-email-sh-functions  | 14 ++++++++------
 email/aiaiai-email-test-patchset |  2 +-
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/email/aiaiai-email-sh-functions b/email/aiaiai-email-sh-functions
index a26fc51..4bb0c09 100644
--- a/email/aiaiai-email-sh-functions
+++ b/email/aiaiai-email-sh-functions
@@ -127,8 +127,10 @@ ini_config_get_or_die()
 
 # Parse the "global" and "email" sections of the config file. The result is a
 # set of per-option variables and their values are exactly as in the
-# configuration file: cfg_ownname, cfg_ownmail, cfg_adminname, cfg_adminmail,
-# cfg_workdir, cfg_jobs, cfg_signature, cfg_built_preamble.
+# configuration file:
+#
+# cfg_ownname, cfg_ownmail, cfg_adminname, cfg_adminmail, cfg_workdir,
+# cfg_jobs, cfg_signature, cfg_built_preamble.
 #
 # Additinally, the following variables are defined:
 #   o cfg_preamble - contains the email preamble read from the file definded
@@ -160,9 +162,9 @@ parse_config()
 # Similar to "parse_config", but parses a project configuration section. If the
 # project is found, the following variables are defined:
 #
-# cfg_name. cfg_descr, cfg_path, cfg_configs, cfg_branch, cfg_reply_to_all,
-# cfg_accept_notify, cfg_always_cc, cfg_unwanted_keywords, and
-# cfg_kmake_opts.
+# cfg_name. cfg_description, cfg_path, cfg_configs, cfg_branch,
+# cfg_reply_to_all, # cfg_accept_notify, cfg_always_cc, cfg_unwanted_keywords,
+# and cfg_kmake_opts.
 #
 # If the project is not found, this function only defined an empty "cfg_name"
 # variable.
@@ -176,7 +178,7 @@ parse_prj_config()
 	cfg_name="$(ini_config_get "$cfgfile" "prj_$prj" "name")"
 	[ -n "$cfg_name" ] || return 0
 
-	ini_config_get_or_die cfg_descr         "$cfgfile" "prj_$prj" "description"
+	ini_config_get_or_die cfg_description   "$cfgfile" "prj_$prj" "description"
 	ini_config_get_or_die cfg_path          "$cfgfile" "prj_$prj" "path"
 	ini_config_get_or_die cfg_configs       "$cfgfile" "prj_$prj" "configs"
 	ini_config_get_or_die cfg_branch        "$cfgfile" "prj_$prj" "branch"
diff --git a/email/aiaiai-email-test-patchset b/email/aiaiai-email-test-patchset
index 31e4345..ee071f8 100755
--- a/email/aiaiai-email-test-patchset
+++ b/email/aiaiai-email-test-patchset
@@ -194,7 +194,7 @@ $cfg_built_preamble
 
 $(fetch_header_per_patch "Subject" < "$mbox" | sort)
 
-Project: $cfg_name ($cfg_descr)
+Project: $cfg_name ($cfg_description)
 
 Configurations: $cfg_configs
 
-- 
1.8.5.2




More information about the aiaiai mailing list