Skip to Content.
Sympa Menu

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

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 (54376f83fa69aeae0e536b9b4736dcf83ef27c3e)
  • Date: Tue, 18 Jul 2017 15:52:57 +0000

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

usr/sbin/gaze | 2 +-
usr/share/man/man1/gaze.1 | 2 +-
var/lib/sorcery/modules/libsorcery | 17 +++++------------
3 files changed, 7 insertions(+), 14 deletions(-)

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

Make `gaze source_urls` take several spells at once

diff --git a/usr/sbin/gaze b/usr/sbin/gaze
index c8601c8..99f8ab6 100755
--- a/usr/sbin/gaze
+++ b/usr/sbin/gaze
@@ -2425,7 +2425,7 @@ parse() {
newer) newer $2 ;;
older) older $2 ;;
sources) sources $SPELL ;;
- source_urls) source_urls $SPELL ;;
+ source_urls) shift; source_urls "$@" ;;
grimoire) shift; gaze_catalog $@ ;;
grimoires) gaze_show_grimoires ;;
search) shift; gaze_search "$@" ;;
diff --git a/usr/share/man/man1/gaze.1 b/usr/share/man/man1/gaze.1
index adef844..b83832b 100644
--- a/usr/share/man/man1/gaze.1
+++ b/usr/share/man/man1/gaze.1
@@ -92,7 +92,7 @@ display the URL for the specified spell
.IP
list all source files contained in a spell
.PP
-.SS source_urls <spell>
+.SS source_urls <spells>
.IP
lists the urls to all files contained in a spell
.PP
diff --git a/var/lib/sorcery/modules/libsorcery
b/var/lib/sorcery/modules/libsorcery
index 5d14238..121df53 100755
--- a/var/lib/sorcery/modules/libsorcery
+++ b/var/lib/sorcery/modules/libsorcery
@@ -943,7 +943,7 @@ function sources() { (
) }

#---------------------------------------------------------------------
-## @param spell
+## @param spell...
## @Stdout filelist
## Returns a list of each source file used by a spell. Most have only
## one, but xfree86 for example splits the sources into three separate
@@ -951,18 +951,11 @@ function sources() { (
##
#---------------------------------------------------------------------
function source_urls() { (
-
- local i srcVar
-
- if [ -z "$SOURCE" ]; then
- codex_set_current_spell_by_name $1
- fi
- get_spell_files_and_urls|while read -a line; do
- unset line[0]
- echo "${line[*]}"
+ while [ $# -gt 0 ]; do
+ codex_set_current_spell_by_name "$1"
+ get_spell_files_and_urls | awk '{print $2}'
+ shift
done
-
-
) }





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

Archive powered by MHonArc 2.6.24.

Top of Page