From 22ee53465925b743bcd27778fdd67d36b8d4f4ae Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 12 Dec 2011 18:45:28 +0000 Subject: Update web tools --- web/doap-src.ttl | 9 ++++++++- web/websummary.sh | 16 ++++++++-------- 2 files changed, 16 insertions(+), 9 deletions(-) (limited to 'web') diff --git a/web/doap-src.ttl b/web/doap-src.ttl index 193f0c2..c2791ec 100644 --- a/web/doap-src.ttl +++ b/web/doap-src.ttl @@ -10,7 +10,7 @@ doap:repository :repo; doap:programming-language "JavaScript"; doap:license ; - doap:release :v0dot1, :v0dot2, :v0dot3, :v0dot4, :v0dot5, :v0dot6, :v0dot7; + doap:release :v0dot1, :v0dot2, :v0dot3, :v0dot4, :v0dot5, :v0dot6, :v0dot7, :v0dot8; doap:maintainer . a foaf:Person; @@ -65,3 +65,10 @@ doap:file-release , , . + +:v0dot8 a doap:Version; + doap:revision "0.8"; + doap:created "2011-12-12"; + doap:file-release , + , + . diff --git a/web/websummary.sh b/web/websummary.sh index 8da2790..fa7290a 100644 --- a/web/websummary.sh +++ b/web/websummary.sh @@ -20,18 +20,18 @@ WHERE { foaf:homepage ?maintainerhome. }" -roqet -q -r csv -e "$q" -D /dev/stdin < $rdf | sed '/^Result/d' \ +roqet -q -r csv -e "$q" -D /dev/stdin < $rdf | sed '1d' \ | while read r; do - home=`echo $r | awk -F , '{print $2}'| sed -e 's/uri\(//' -e 's/\)//'` - repo=`echo $r | awk -F , '{print $3}'| sed -e 's/uri\(//' -e 's/\)//'` - licenseuri=`echo $r | awk -F , '{print $4}'| sed -e 's/uri\(//' -e 's/\)//'` - maint=`echo $r | awk -F , '{print $5}'| sed -e 's/"//g'` - mainthome=`echo $r | awk -F , '{print $6}'| sed -e 's/uri\(//' -e 's/\)//'` - lang=`echo $r | awk -F , '{print $7}'| sed -e 's/"//g'` + home=`echo $r | awk -F , '{print $1}'` + repo=`echo $r | awk -F , '{print $2}'` + licenseuri=`echo $r | awk -F , '{print $3}'` + maint=`echo $r | awk -F , '{print $4}'` + mainthome=`echo $r | awk -F , '{print $5}'` + lang=`echo $r | awk -F , '{print $6}'` test "$licenseuri" = "http://www.gnu.org/licenses/gpl.html" && license="GPL" test "$licenseuri" = "http://www.gnu.org/licenses/agpl.html" && license="AGPL" test "$licenseuri" = "http://creativecommons.org/licenses/MIT/" && license="MIT" - repotype=`echo $r | awk -F , '{print $8}'| sed -e 's/uri\(//' -e 's/\)//'` + repotype=`echo $r | awk -F , '{print $7}'` test "$repotype" = "http://usefulinc.com/ns/doap#GitRepository" && repocmd="git clone" cat <<- _EOF_ -- cgit v1.2.3