Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master sorcery by Ismael Luceno (ffd9f321cdcbcc9e97f3c8db67f2e1a6a8d800f5)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master sorcery by Ismael Luceno (ffd9f321cdcbcc9e97f3c8db67f2e1a6a8d800f5)
  • Date: Tue, 18 Jul 2017 21:21:10 +0000

GIT changes to master sorcery by Ismael Luceno <ismael AT sourcemage.org>:

usr/sbin/gaze | 56
++++++++++++++++++-------------------
usr/share/man/man1/gaze.1 | 2 -
var/lib/sorcery/modules/libsorcery | 13 +++-----
3 files changed, 34 insertions(+), 37 deletions(-)

New commits:
commit ffd9f321cdcbcc9e97f3c8db67f2e1a6a8d800f5
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

gaze: Make `gaze sources` take several spells at once

commit 8006de581b4b2e79105a697b78bf6af8c211a028
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

gaze: Simplify `gaze <spell_component>`

diff --git a/usr/sbin/gaze b/usr/sbin/gaze
index 99f8ab6..ba53686 100755
--- a/usr/sbin/gaze
+++ b/usr/sbin/gaze
@@ -2379,33 +2379,33 @@ parse() {
case $1 in

# Spell components. In alphabetical order.
- BUILD) show_spell_component $1 $2 ;;
- CONFIGURE) show_spell_component $1 $2 ;;
- CONFLICTS) show_spell_component $1 $2 ;;
- DETAILS) show_spell_component $1 $2 ;;
- DEPENDS) show_spell_component $1 $2 ;;
- DOWNLOAD) show_spell_component $1 $2 ;;
- FINAL) show_spell_component $1 $2 ;;
- HISTORY) show_spell_component $1 $2 ;;
- INSTALL) show_spell_component $1 $2 ;;
- INSTALL_EXTRAS) show_spell_component $1 $2 ;;
- PATCH) show_spell_component $1 $2 ;;
- POST_BUILD) show_spell_component $1 $2 ;;
- POST_INSTALL) show_spell_component $1 $2 ;;
- POST_REMOVE) show_spell_component $1 $2 ;;
- POST_RESURRECT) show_spell_component $1 $2 ;;
- PRE_BUILD) show_spell_component $1 $2 ;;
- PRE_INSTALL) show_spell_component $1 $2 ;;
- PRE_REMOVE) show_spell_component $1 $2 ;;
- PRE_RESURRECT) show_spell_component $1 $2 ;;
- PRE_SUB_DEPENDS) show_spell_component $1 $2 ;;
- PREPARE) show_spell_component $1 $2 ;;
- PROVIDES) show_spell_component $1 $2 ;;
- SECURITY) show_spell_component $1 $2 ;;
- SUB_DEPENDS) show_spell_component $1 $2 ;;
- TRANSFER) show_spell_component $1 $2 ;;
- TRIGGER_CHECK) show_spell_component $1 $2 ;;
- TRIGGERS) show_spell_component $1 $2 ;;
+ BUILD|\
+ CONFIGURE|\
+ CONFLICTS|\
+ DETAILS|\
+ DEPENDS|\
+ DOWNLOAD|\
+ FINAL|\
+ HISTORY|\
+ INSTALL|\
+ INSTALL_EXTRAS|\
+ PATCH|\
+ POST_BUILD|\
+ POST_INSTALL|\
+ POST_REMOVE|\
+ POST_RESURRECT|\
+ PRE_BUILD|\
+ PRE_INSTALL|\
+ PRE_REMOVE|\
+ PRE_RESURRECT|\
+ PRE_SUB_DEPENDS|\
+ PREPARE|\
+ PROVIDES|\
+ SECURITY|\
+ SUB_DEPENDS|\
+ TRANSFER|\
+ TRIGGER_CHECK|\
+ TRIGGERS|\
UP_TRIGGERS) show_spell_component $1 $2 ;;

# Other options
@@ -2424,7 +2424,7 @@ parse() {
from) shift; show_from "$@" ;;
newer) newer $2 ;;
older) older $2 ;;
- sources) sources $SPELL ;;
+ sources) shift; sources "$@" ;;
source_urls) shift; source_urls "$@" ;;
grimoire) shift; gaze_catalog $@ ;;
grimoires) gaze_show_grimoires ;;
diff --git a/usr/share/man/man1/gaze.1 b/usr/share/man/man1/gaze.1
index b83832b..f30b4a3 100644
--- a/usr/share/man/man1/gaze.1
+++ b/usr/share/man/man1/gaze.1
@@ -88,7 +88,7 @@ display the section a spell belongs to. If -path is given,
display the full path
.IP
display the URL for the specified spell
.PP
-.SS sources <spell>
+.SS sources <spells>
.IP
list all source files contained in a spell
.PP
diff --git a/var/lib/sorcery/modules/libsorcery
b/var/lib/sorcery/modules/libsorcery
index 121df53..1d8bc1c 100755
--- a/var/lib/sorcery/modules/libsorcery
+++ b/var/lib/sorcery/modules/libsorcery
@@ -932,14 +932,11 @@ function verify_source() {
##
#---------------------------------------------------------------------
function sources() { (
-
- local i srcVar
-
- if [ -z "$SOURCE" ]; then
- codex_set_current_spell_by_name $1
- fi
- get_spell_files
-
+ while [ $# -gt 0 ]; do
+ codex_set_current_spell_by_name "$1"
+ get_spell_files
+ shift
+ done
) }

#---------------------------------------------------------------------



  • [SM-Commit] GIT changes to master sorcery by Ismael Luceno (ffd9f321cdcbcc9e97f3c8db67f2e1a6a8d800f5), Ismael Luceno, 07/18/2017

Archive powered by MHonArc 2.6.24.

Top of Page