diff options
author | Nick White <git@njw.me.uk> | 2011-11-19 17:49:19 +0000 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2011-11-19 17:49:19 +0000 |
commit | 03c76ae5d5b65ba080ba20f9ace2371bf667fbc8 (patch) | |
tree | d69debc7b9ff79af0021c7a0867222685a7176fc | |
parent | 2ed892018ef515882e75affd7f59989ed750b489 (diff) |
Update websummary to work with latest version of roqet
-rw-r--r-- | websummary.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/websummary.sh b/websummary.sh index c68ff17..06c8352 100644 --- a/websummary.sh +++ b/websummary.sh @@ -23,19 +23,19 @@ 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" test "$licenseuri" = "http://www.isc.org/software/license" && license="ISC" - 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_ |