summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2012-06-01 15:34:30 +0100
committerNick White <git@njw.me.uk>2012-06-01 15:34:30 +0100
commit2a7f25880070a46b7a2fef53c742be3c081ee1e3 (patch)
tree42e5227eb82fb8c93005cda3392851efb68ac8ce
parent91243bc9f5a7eab86c9c6c856502fd9af7fe3779 (diff)
Make websummary work with older versions of librdf
-rw-r--r--websummary.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/websummary.sh b/websummary.sh
index 06c8352..1b9e22f 100644
--- a/websummary.sh
+++ b/websummary.sh
@@ -25,17 +25,17 @@ WHERE {
roqet -q -r csv -e "$q" -D /dev/stdin < $rdf | sed '1d' \
| while read r; do
- 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}'`
+ home=`echo $r | awk -F , '{print $2}' | sed 's/uri(//;s/)$//'`
+ repo=`echo $r | awk -F , '{print $3}' | sed 's/uri(//;s/)$//'`
+ licenseuri=`echo $r | awk -F , '{print $4}' | sed 's/uri(//;s/)$//'`
+ maint=`echo $r | awk -F , '{print $5}' | sed 's/"//g'`
+ mainthome=`echo $r | awk -F , '{print $6}' | sed 's/uri(//;s/)$//'`
+ lang=`echo $r | awk -F , '{print $7}' | sed 's/"//g'`
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 $7}'`
+ repotype=`echo $r | awk -F , '{print $8}' | sed 's/uri(//;s/)$//'`
test "$repotype" = "http://usefulinc.com/ns/doap#GitRepository" && repocmd="git clone"
cat <<- _EOF_