New commits:
commit 8ab6815f4c7672a5e224bee31daf69d46fbb0399
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
changed the value of GAZE_VERBOSE for better readability
commit 564b4b7db803e9526ecc572e03544098cca6e00f
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
gaze: improved what/short when dealing with multiple spells #14839
diff --git a/ChangeLog b/ChangeLog
index 4208d13..aef7481 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-03 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * gaze: improved what/short when dealing with multiple spells #14839
+ changed the value of GAZE_VERBOSE for better readability
+
2008-10-07 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* delve: redirect messages that should be shown with VOYEUR=off too
diff --git a/usr/sbin/gaze b/usr/sbin/gaze
index 497a741..0c1cf34 100755
--- a/usr/sbin/gaze
+++ b/usr/sbin/gaze
@@ -260,7 +260,7 @@ function md5sum_files() {
#-----
function alien() {
- if [[ $GAZE_VERBOSE != 0 ]] ; then
+ if [[ $GAZE_VERBOSE != false ]] ; then
message "In a few minutes I will print files found on this disk"
message "that were not installed by sorcery. This is not a"
message "security feature! Files could still be lurking"
@@ -270,12 +270,12 @@ function alien() {
rm -f $TMP_DIR/gaze.found
rm -f $TMP_DIR/gaze.known
if [ $grimoire ]; then
echo "Grimoire: " $(smgl_basename $grimoire)
@@ -319,7 +319,7 @@ function gaze_catalog() {
COUNT=0
for SECTION in `codex_get_all_sections $grimoire`; do
- if [[ $GAZE_VERBOSE != 0 ]]; then
+ if [[ $GAZE_VERBOSE != false ]]; then
echo
echo "-------------------------------------------------"
echo "SECTION: $( smgl_basename $SECTION )"
@@ -738,7 +738,7 @@ function real_short_search() {
); do
smgl_basename "$(smgl_dirname $spell)" spellname
- if [[ $GAZE_VERBOSE == 0 ]]; then
+ if [[ $GAZE_VERBOSE == false ]]; then
echo $spellname
else
echo "$pattern -> $spellname"
@@ -764,7 +764,7 @@ function real_long_search() {
local file pattern
local SEARCH SEARCH_RESULTS
- if ! [[ $GAZE_VERBOSE == 0 ]] ; then
+ if ! [[ $GAZE_VERBOSE == false ]] ; then
echo "Searching... "
fi
@@ -790,7 +790,7 @@ function real_long_search() {
/^EOF$/{inLongDesc=0;} ' $file)
if [[ ${SEARCH_RESULTS} ]]; then
- if [[ $GAZE_VERBOSE == 0 ]]; then
+ if [[ $GAZE_VERBOSE == false ]]; then
smgl_basename $(smgl_dirname $file)
else
clear_line
@@ -800,7 +800,7 @@ function real_long_search() {
done
done
- if ! [ "$GAZE_VERBOSE" == "0" ]; then
+ if ! [ "$GAZE_VERBOSE" == "false" ]; then
clear_line
fi
@@ -828,7 +828,7 @@ gaze_provides() {
local spell
for feature in "$@"; do
- ! [[ $GAZE_VERBOSE == 0 ]] &&
+ ! [[ $GAZE_VERBOSE == false ]] &&
message "${SPELL_COLOR}${feature}:${DEFAULT_COLOR}"
spell=$(find_providers "$feature")
if [[ "$spell" ]]; then
@@ -945,7 +945,7 @@ function gaze_show_website() {
for spell in $@; do
if codex_set_current_spell_by_name $spell; then
if [ -n "$WEB_SITE" ]; then
- ! [[ $GAZE_VERBOSE == 0 ]] &&
+ ! [[ $GAZE_VERBOSE == false ]] &&
message "${SPELL_COLOR}${spell}:${DEFAULT_COLOR}"
echo $WEB_SITE
else
@@ -1329,7 +1329,7 @@ function gaze_show_license_table() {
#---------------------------------------------------------------------
function gaze_show_grimoires() {