Skip to Content.
Sympa Menu

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

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 (8e571ed96724498a67591a182127449db473b2ae)
  • Date: Fri, 23 Feb 2007 17:59:37 -0600

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

usr/bin/quill | 12 +++++++++
var/lib/quill/ChangeLog | 6 ++++
var/lib/quill/modules/libcore | 1
var/lib/quill/modules/librubyraa | 49
+++++++++++++++++++++++++++++++++++++++
var/lib/quill/version | 2 -
5 files changed, 69 insertions(+), 1 deletion(-)

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

added ruby-raa mode to grab info from http://raa.ruby-lang.org

diff --git a/usr/bin/quill b/usr/bin/quill
index ef785e0..ad76214 100755
--- a/usr/bin/quill
+++ b/usr/bin/quill
@@ -59,6 +59,10 @@ while [[ -n $1 ]]; do
check_parameter $2
QUILL_CPAN_MODE="on"
shift ;;
+ --rubyraa)
+ check_parameter $2
+ QUILL_RAA_MODE="on"
+ shift ;;
--update|-u)
check_parameter $2
QUILL_UPDATE="on"
@@ -146,6 +150,14 @@ then
parse_spell_source_file_info
fi

+if [[ "$QUILL_RAA_MODE" == "on" ]]
+then
+ quill_raa_core $QUILL_TARGET
+
+ # creates SPELL_VERSION and SPELL_SRC_FILE (to be SOURCE)
+ parse_spell_source_file_info
+fi
+
if [[ "$QUILL_UPDATE" == "on" ]]
then
SPELL_NAME=$QUILL_TARGET
diff --git a/var/lib/quill/ChangeLog b/var/lib/quill/ChangeLog
index 5f2327f..f54fef2 100644
--- a/var/lib/quill/ChangeLog
+++ b/var/lib/quill/ChangeLog
@@ -1,3 +1,9 @@
+2007-02-24 Andra?? "ruskie" Levstik <ruskie AT mages.ath.cx>
+ * quill: added ruby-raa mode
+ * libcore: added ruby-raa mode
+ * librubyraa: added for ruby-raa mode
+ * version: 0.2.2-2007-02-24
+
2007-02-18 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* quill, libcore, libhistory, libupdate: fix #13536 by using a dirty
flag
* libupdate: further optimise the find in copy_git_sub by not
checking .git
diff --git a/var/lib/quill/modules/libcore b/var/lib/quill/modules/libcore
index 980072f..b22a017 100644
--- a/var/lib/quill/modules/libcore
+++ b/var/lib/quill/modules/libcore
@@ -500,6 +500,7 @@ A spell creator and updater.
OPTIONS:
--fmxml, -f <SPELL> get spell data from Freshmeat if possible
--perlcpan, -c <SPELL> get spell data from Perl-CPAN if possible
+ --rubyraa <SPELL> get spell data from Ruby Application Archive
if possible
--update, -u <SPELL> update exsisting spell
--apprentice, -a apprentice mode (default)
--mage, -m mage mode (advanced)
diff --git a/var/lib/quill/modules/librubyraa
b/var/lib/quill/modules/librubyraa
new file mode 100644
index 0000000..548bfb3
--- /dev/null
+++ b/var/lib/quill/modules/librubyraa
@@ -0,0 +1,49 @@
+#
+## Ruby RAA module
+#
+
+function quill_raa_get_info(){
+ local info
+ local raa_project_file
+ info="${1}"
+ raa_project_file="${2}"
+ echo "$(grep "${info}:" $raa_project_file | sed -e "s/ *${info}:
*\(.*\)/\1/")"
+}
+
+function quill_raa_core(){
+ local project
+ local desc
+ local line
+ local raa_project_file
+ project="$(echo $1 | tr 'A-Z' 'a-z')"
+ raa_project_file=${QUILL_TMP_DIR}/${project}.raa
+ lynx -width=8000 \
+ -nolist \
+ -dump \
+ http://raa.ruby-lang.org/project/$project/ > \
+ $raa_project_file
+ SPELL_SHORT_DESCRIPTION="$(quill_raa_get_info "Short description"
"$raa_project_file" )"
+ SPELL_LICENSE="$(quill_raa_get_info "License" "$raa_project_file" )"
+ SPELL_URL="$(quill_raa_get_info "Homepage" "$raa_project_file")"
+ SPELL_SRC_URL="$(quill_raa_get_info "Download" "$raa_project_file")"
+ SPELL_NAME="$project"
+ ( cat $raa_project_file | grep -A99999 "Description:" ) | \
+ while read line
+ do
+ if ! grep -q "Edit this project" <<< $line
+ then
+ desc="$desc $line"
+ else
+ echo ${desc/Description:} > ${QUILL_TMP_DIR}/${SPELL_NAME}
+ return 1
+ fi
+ done
+ SPELL_DESC_NAME="$project"
+ DEPENDSISON="DEPENDS, "
+ SPELL_DEPENDENCIES="ruby"
+ touch ${QUILL_TMP_DIR}/${SPELL_NAME}-BUILD
+ echo "true" > ${QUILL_TMP_DIR}/${SPELL_NAME}-BUILD
+ BUILDISON="BUILD, "
+ INSTALLISON="INSTALL, "
+
+}
diff --git a/var/lib/quill/version b/var/lib/quill/version
index ee1372d..80b8da4 100644
--- a/var/lib/quill/version
+++ b/var/lib/quill/version
@@ -1 +1 @@
-0.2.2
+0.2.2-2007-02-24



  • [SM-Commit] GIT changes to master quill by Andra?? Levstik (8e571ed96724498a67591a182127449db473b2ae), Andra?? Levstik, 02/23/2007

Archive powered by MHonArc 2.6.24.

Top of Page