aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xGUIDELINES46
1 files changed, 27 insertions, 19 deletions
diff --git a/GUIDELINES b/GUIDELINES
index c0ac0be..7c8d100 100755
--- a/GUIDELINES
+++ b/GUIDELINES
@@ -9,19 +9,20 @@ In the future this procedure will be automatic.
1 - After any adition to firma, check the following:
----------------------------------------------------
- - Put all new variables in the variables list
- - If the new var is used via config-file, add its creation
- in the function 'newlist'
- - Put all new functions in the function list
- - Put all new arrays in var USED_ARRAYS
+ - Put all new variables in the variables list bellow
+ - If a new variable has to be declared via a config-file,
+ remember to set it to be created in the NewList function
+ - Put all new functions in the functions list bellow
+ - Put all new arrays in the GLOBAL_ARRAYS variable
- If you are using an unix command, check if its already
- listed in the command list, if not please add it
+ listed in the commands list. If it's not, please add it
2 - Variables usage
-------------------
- - Global vars: uppercase
- - Local vars: lowercase, declared with "local"
+ - Global vars: uppercase, with spaces replaced by underscores
+ - Local vars: lowercase, with spaces replaced by underscores and
+ declared using "local"
- Attention to variables initialization, unset all vars after use
3 - Script listing
@@ -49,7 +50,7 @@ In the future this procedure will be automatic.
- used variables:
- - via config file
+ - declared via a config file
GPG_BINARY
MAIL_AGENT
@@ -61,8 +62,9 @@ In the future this procedure will be automatic.
LIST_HOMEDIR
PASSPHRASE
- - direct at firma
+ - declared directly via firma
+ FIRMA_CONFIG_FILE
VERSION
GPG
@@ -71,26 +73,30 @@ In the future this procedure will be automatic.
GPG_DECRYPT
GPG_ENCRYPT
- LISTS_DIR
- SENDER_ADDRESS
- ARRAY
- LIST_NAME
- LIST_PATH
- LIST_CONFIG_FILE
- FIRMA_CONFIG_FILE
-
FROM
DATE
SUBJECT
+ SENDER_ADDRESS
DESCRIPTION
+ ARRAY
+ LIST_NAME
+ LIST_PATH
+ LIST_CONFIG_FILE
+
- local vars
administrator
+ stdin
+ element
+ first_blank_line
+ i
+ j
email
keyid
- element, i, j, uid_count, chosen_uid_number
+ uid_count
+ chosen_uid_number
- arrays
@@ -117,3 +123,5 @@ In the future this procedure will be automatic.
basename
expect
fold
+ uniq
+