Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master quill by Andra?? Levstik (d88051cdfc9617019a3d7cce92cdc8b0efacc3f6)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Andra?? Levstik <scm AT mail.sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master quill by Andra?? Levstik (d88051cdfc9617019a3d7cce92cdc8b0efacc3f6)
  • Date: Sat, 11 Nov 2006 02:59:19 -0600

GIT changes to master quill by Andra?? Levstik <ruskie AT mages.ath.cx>:

usr/bin/quill | 5 +++--
var/lib/quill/ChangeLog | 4 ++++
var/lib/quill/modules/libcore | 14 ++++++++++++++
3 files changed, 21 insertions(+), 2 deletions(-)

New commits:
commit d88051cdfc9617019a3d7cce92cdc8b0efacc3f6
Author: Andra?? Levstik <ruskie AT mages.ath.cx>
Commit: Andra?? Levstik <ruskie AT mages.ath.cx>

added query_list to libcore and make quill use it instead of directcly
calling
select_list.

diff --git a/usr/bin/quill b/usr/bin/quill
index c953a9a..78574ad 100755
--- a/usr/bin/quill
+++ b/usr/bin/quill
@@ -138,8 +138,7 @@ then
"Add a \$SCM version" \
"Try it out" \
"Quit" )
- message "${QUERY_COLOR}What do you want to do?$DEFAULT_COLOR"
- select_list ANSWER "" "${actions[@]}"
+ query_list "What do you want to do?" ANSWER "${actions[@]}"

[[ $ANSWER == "Quit" ]] && exit 0

@@ -407,6 +406,8 @@ else
then
quill_final_tarball
fi
+ message "The spell has been generated and put into:"
+ message "$QUILL_SPELL_DIR/$SPELL_NAME"
# This is broken in a way
# if query "Do you want to put the spell into one of the avialable
grimoires?" n
# then
diff --git a/var/lib/quill/ChangeLog b/var/lib/quill/ChangeLog
index 17a60da..4cbda95 100644
--- a/var/lib/quill/ChangeLog
+++ b/var/lib/quill/ChangeLog
@@ -1,3 +1,7 @@
+2006-11-11 Andra?? "ruskie" Levstik <ruskie AT mages.ath.cx>
+ * libcore: added query_list function from init-manager
+ * quill: use query_list intead of directcly calling select_list
+
2006-11-09 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libcore: made quill_edit take a parameter to specify arbitrary files
* quill: updated update of update mode :) almost done, untested
diff --git a/var/lib/quill/modules/libcore b/var/lib/quill/modules/libcore
index 3e458e7..954aa31 100644
--- a/var/lib/quill/modules/libcore
+++ b/var/lib/quill/modules/libcore
@@ -1,4 +1,18 @@
#---
+## @Synopsis query_list function from init-manager
+## $1 - the question
+## $2 - the VARIABLE to which to store the answer
+## $3...$n - the options for the list
+#---
+function query_list()
+{
+ local question="$1"
+ shift
+ message "$question"
+ select_list "$@"
+}
+
+#---
## @Synopsis generate basic spell dir
#---
function create_spell_base(){



  • [SM-Commit] GIT changes to master quill by Andra?? Levstik (d88051cdfc9617019a3d7cce92cdc8b0efacc3f6), Andra?? Levstik, 11/11/2006

Archive powered by MHonArc 2.6.24.

Top of Page