autospec: deprecate the option '--colorize'

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-11-11 00:00:54 +01:00
parent 54b8190ba1
commit 98fe5c6a6f
4 changed files with 17 additions and 10 deletions

View File

@ -33,6 +33,10 @@ Changes in version 1.14.2
* plugins/* - Davide Madrisan: * plugins/* - Davide Madrisan:
The option '--colorize-theme' must set colorize to '1'. The option '--colorize-theme' must set colorize to '1'.
+ update
* autospec - Davide Madrisan:
Deprecate the option '--colorize'.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Changes in version 1.14.1 - _TO*Hacklab release Changes in version 1.14.1 - _TO*Hacklab release

View File

@ -127,7 +127,9 @@ while (($# > 0)); do
-q|--quiet) -q|--quiet)
let "verbose = 0" ;; let "verbose = 0" ;;
-r|--colorize) -r|--colorize)
let "colorize = 1" ;; let "colorize = 1"
notify.warning $"\
deprecated option"" (-r|--colorize), "$"use \`--colorize-theme' instead" ;;
--colorize-theme) --colorize-theme)
read_arg colorize_theme "$@" || shift read_arg colorize_theme "$@" || shift
let "colorize = 1" ;; let "colorize = 1" ;;
@ -160,7 +162,8 @@ esac
. @libdir@/libcfg.lib . @libdir@/libcfg.lib
[ "$logging" = "1" ] && let "colorize = 0" [ "$logging" = "1" ] && let "colorize = 0"
[ "$colorize" = "1" ] && notify.enable_colors || notify.disable_colors [ "$colorize" = "1" ] && notify.enable_colors "$colorize_theme" \
|| notify.disable_colors
# checking for errors in the configuration file # checking for errors in the configuration file
[ "$config_getvar" = 1 ] || config.integrity [ "$config_getvar" = 1 ] || config.integrity

View File

@ -34,7 +34,7 @@ spec_backup_extension="old"
# Create "hidden" (default) or "visible" backup copies # Create "hidden" (default) or "visible" backup copies
spec_backup_attr="hidden" spec_backup_attr="hidden"
## Output using ascii colors (enabled by default) ----------------------------- ## Output using ascii or web colors (enabled by default) ----------------------
# Default colors are: # Default colors are:
# ESC=$(echo -en "\033") # ESC=$(echo -en "\033")
# CRIT="${ESC}[1;31m" (red) # CRIT="${ESC}[1;31m" (red)
@ -42,13 +42,7 @@ spec_backup_attr="hidden"
# WARN="${ESC}[1;31m" # WARN="${ESC}[1;31m"
# EXIT="${ESC}[1;31m" # EXIT="${ESC}[1;31m"
# NORM=$(echo -en "${ESC}[m\017") # NORM=$(echo -en "${ESC}[m\017")
# # See the files: see /etc/@package@.d/color-theme.*
# A possible setup for the web:
# CRIT="<font color=white style=\"background-color:red\">"
# NOTE="<font color=gold>"
# WARN="<font color=red>"
# EXIT="$CRIT"
# NORM="</font>"
colorize=1 colorize=1
## Logging directory (default is /var/tmp/@package@) -------------------------- ## Logging directory (default is /var/tmp/@package@) --------------------------

View File

@ -76,6 +76,12 @@ msgstr "Segnalare eventuali bug a <davide.madrisan@gmail.com>."
msgid "library not found" msgid "library not found"
msgstr "libreria non trovata" msgstr "libreria non trovata"
msgid "deprecated option"
msgstr "opzione deprecata"
msgid "use \\`--colorize-theme' instead"
msgstr "utilizzare invece \\`--colorize-theme'"
msgid "version" msgid "version"
msgstr "versione" msgstr "versione"