[SM-Commit] GIT changes to master quill by Jaka Kranjc (5079c11ee50d80fc9aec0158ac5b5f3c4dfde92a)

Jaka Kranjc scm at sourcemage.org
Wed Aug 29 04:50:38 EDT 2007


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

 usr/bin/quill                 |    3 +++
 usr/share/doc/quill/HACKING   |   12 ++++++++++++
 var/lib/quill/ChangeLog       |    5 +++++
 var/lib/quill/modules/libcore |    2 +-
 var/lib/quill/version         |    2 +-
 5 files changed, 22 insertions(+), 2 deletions(-)

New commits:
commit 5079c11ee50d80fc9aec0158ac5b5f3c4dfde92a
Author: Jaka Kranjc <lynxlynxlynx at sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx at sourcemage.org>

    	* quill, libcore: fixed argument being lost when no option was passed
    	* HACKING: added with some notes

diff --git a/usr/bin/quill b/usr/bin/quill
index 16571f5..9fd7b6f 100755
--- a/usr/bin/quill
+++ b/usr/bin/quill
@@ -133,6 +133,8 @@ while [[ -n $1 ]]; do
                *) error_msg "Invalid parameter $1"
                   quill_help 102 ;;
     esac
+  else
+    [[ -z $QUILL_TARGET ]] && QUILL_TARGET=$1
   fi
   shift
 done
@@ -353,6 +355,7 @@ then
 
   done
 else
+  SPELL_NAME=${SPELL_NAME:-$QUILL_TARGET}
   query_spell_name
   while codex_does_spell_exist $SPELL_NAME > /dev/null; do
     message "This spell name is already taken!"
diff --git a/usr/share/doc/quill/HACKING b/usr/share/doc/quill/HACKING
new file mode 100644
index 0000000..bd5876b
--- /dev/null
+++ b/usr/share/doc/quill/HACKING
@@ -0,0 +1,12 @@
+The coding style is similar to the one of sorcery. Just play along with the
+rest of the code.
+
+Adding download modules
+* the name of $MODULE should be unique
+* write the download code
+* provide a quill_${MODULE}_core function as the entry point for quill
+* add unique commandline switches to the argument parser
+* add the commandline switches to help
+* the module should fall back to the provided spell name if it couldn't
+  retrieve one itself
+* don't exit on error but return
diff --git a/var/lib/quill/ChangeLog b/var/lib/quill/ChangeLog
index ada1c78..3fd3e64 100644
--- a/var/lib/quill/ChangeLog
+++ b/var/lib/quill/ChangeLog
@@ -1,4 +1,9 @@
 2007-07-13 Jaka Kranjc <lynxlynxlynx at sourcemage.org>
+	* quill, libcore: fixed argument being lost when no option was passed
+	* HACKING: added with some notes
+	* version: 0.2.8-rc8
+
+2007-07-13 Jaka Kranjc <lynxlynxlynx at sourcemage.org>
 	* quill: fixed bad ruby restoration, savannah switch
 	* libcore: removed extra tab in savannah quill_help
 	  separated the extra modules in quill_help and updated it
diff --git a/var/lib/quill/modules/libcore b/var/lib/quill/modules/libcore
index 9f30c1a..159f49b 100644
--- a/var/lib/quill/modules/libcore
+++ b/var/lib/quill/modules/libcore
@@ -580,7 +580,7 @@ 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>.
 There is NO WARRANTY, to the extent permitted by law.
 
-USAGE: quill [OPTIONS] [MODULE <SPELL>]
+USAGE: quill [OPTIONS] [SPELL] [MODULE <SPELL>]
 A spell creator and updater.
 
 OPTIONS:
diff --git a/var/lib/quill/version b/var/lib/quill/version
index 561f30a..25031ed 100644
--- a/var/lib/quill/version
+++ b/var/lib/quill/version
@@ -1 +1 @@
-0.2.8-rc7
+0.2.8-rc8



More information about the SM-Commit mailing list