Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (4fde83105faf165b6224c463e4e40ca0e88c3ab6)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Jaka Kranjc <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (4fde83105faf165b6224c463e4e40ca0e88c3ab6)
  • Date: Fri, 29 Feb 2008 07:57:17 -0600

GIT changes to master sorcery by Jaka Kranjc <lynxlynxlynx AT sourcemage.org>:

ChangeLog | 5 +++++
usr/sbin/gaze | 2 +-
var/lib/sorcery/modules/libmisc | 3 ++-
3 files changed, 8 insertions(+), 2 deletions(-)

New commits:
commit 4fde83105faf165b6224c463e4e40ca0e88c3ab6
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

gaze: small grammar fix in gaze_show_spells_by_status

commit b551c92bc2349921e4e3b7888db4b61d744e1980
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

libmisc: fixed consolidate_params so it can take "-[eEn]" as values too;
before they were passed to echo and ignored, breaking dispel -e
and possibly alter

diff --git a/ChangeLog b/ChangeLog
index 20a9c8f..0e32ba4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-29 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * libmisc: fixed consolidate_params so it can take "-[eEn]" as values
too;
+ before they were passed to echo and ignored, breaking dispel -e
+ * gaze: small grammar fix in gaze_show_spells_by_status
+
2008-02-25 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libdispel: remove any config stages upon dispel

diff --git a/usr/sbin/gaze b/usr/sbin/gaze
index cd8cd1b..260a06f 100755
--- a/usr/sbin/gaze
+++ b/usr/sbin/gaze
@@ -1960,7 +1960,7 @@ function gaze_system_info()
#---------------------------------------------------------------------
function gaze_show_spells_by_status () {
message -n "${MESSAGE_COLOR}The following spells are set to"
- message -n "${DEFAULT_COLOR} $2"
+ message -n "${DEFAULT_COLOR} $2:"
message "${SPELL_COLOR}"
get_all_spells_with_status $1 | sort | maybe_column
message -n "${DEFAULT_COLOR}"
diff --git a/var/lib/sorcery/modules/libmisc b/var/lib/sorcery/modules/libmisc
index 95e1220..dcbd21e 100755
--- a/var/lib/sorcery/modules/libmisc
+++ b/var/lib/sorcery/modules/libmisc
@@ -402,7 +402,8 @@ function esc_str()
function consolidate_params() {
local param
for param in "$@"; do
- echo -n $param | sed 's/ /\\ /g'
+ # add and remove a dummy space, so echo parameters can be used as values
+ echo -n "" $param | sed 's/ //; s/ /\\ /g'
echo -n " "
done
}



  • [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (4fde83105faf165b6224c463e4e40ca0e88c3ab6), Jaka Kranjc, 02/29/2008

Archive powered by MHonArc 2.6.24.

Top of Page