Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master quill by Jaka Kranjc (aa1f496e63bd6f4faf7d7a235184f85a5071c51b)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Jaka Kranjc <scm AT mail.sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master quill by Jaka Kranjc (aa1f496e63bd6f4faf7d7a235184f85a5071c51b)
  • Date: Fri, 26 Jan 2007 15:41:45 -0600

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

var/lib/quill/ChangeLog | 6 ++++++
var/lib/quill/modules/libcore | 20 +++++++++++++++++++-
var/lib/quill/modules/libupdate | 2 +-
3 files changed, 26 insertions(+), 2 deletions(-)

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

* libupdate: added -quit to the find in copy_git_sub to speed it up
* libcore: fix version print in quill_help
add codex_get_spell_paths fallback

diff --git a/var/lib/quill/ChangeLog b/var/lib/quill/ChangeLog
index 5481926..a098990 100644
--- a/var/lib/quill/ChangeLog
+++ b/var/lib/quill/ChangeLog
@@ -1,3 +1,9 @@
+2007-01-25 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * libupdate: added -quit to the find in copy_git_sub to speed it up
+ * libcore: fix version print in quill_help
+ add codex_get_spell_paths fallback
+ * version: 0.2.1
+
2007-01-24 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* quill: added last menu entry for 0.2: patchlevel adding
factored out multiversion_check
diff --git a/var/lib/quill/modules/libcore b/var/lib/quill/modules/libcore
index 1c7ec8f..3153e3a 100644
--- a/var/lib/quill/modules/libcore
+++ b/var/lib/quill/modules/libcore
@@ -481,7 +481,7 @@ function query_msg() {
#---
function quill_help() {

- message "quill -$QUILL_VERSION
+ message "quill $QUILL_VERSION
Copyright (C) 2006 Source Mage
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
@@ -515,6 +515,24 @@ EXAMPLES:
exit ${1:-0}
}

+
+#---
+## @Synopsis function that displays help and exits
+#---
+function codex_get_spell_paths() {
+ local SPELL_DIRECTORY=$1
+ if declare -f codex_get_spell_paths &> /dev/null; then
+ codex_get_spell_paths $SPELL_DIRECTORY
+ else
+ function codex_get_spell_paths() {
+ SECTION_DIRECTORY=${SPELL_DIRECTORY%/*}
+ SECTION=${SECTION_DIRECTORY##*/}
+ GRIMOIRE=${SECTION_DIRECTORY%/*}
+ GRIMOIRE_NAME=$(basename $GRIMOIRE)
+ }
+ fi
+}
+
#---
##
## This software is free software; you can redistribute it and/or modify
diff --git a/var/lib/quill/modules/libupdate b/var/lib/quill/modules/libupdate
index f79a6e2..b20c4aa 100644
--- a/var/lib/quill/modules/libupdate
+++ b/var/lib/quill/modules/libupdate
@@ -106,7 +106,7 @@ function copy_git_sub()

# find where under $QUILL_GIT_DIR the spell actually is
# perhaps the section path is /home/navaden/sorcery/git/gnome1-libs
- SECTION2=$(find "$QUILL_GIT_DIR" -regex
"${QUILL_GIT_DIR%/}/[^/]*/[^/]*/$SPELL_NAME$" -type d -printf "%h\n")
+ SECTION2=$(find "$QUILL_GIT_DIR" -regex
"${QUILL_GIT_DIR%/}/[^/]*/[^/]*/$SPELL_NAME$" -type d -printf "%h\n" -quit)
if [[ -z $SECTION2 ]]
then
error_msg "Couldn't find the spell, \$QUILL_GIT_DIR is probably bad!"



  • [SM-Commit] GIT changes to master quill by Jaka Kranjc (aa1f496e63bd6f4faf7d7a235184f85a5071c51b), Jaka Kranjc, 01/26/2007

Archive powered by MHonArc 2.6.24.

Top of Page