summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2015-03-04 11:25:01 +0000
committerNick White <git@njw.name>2015-03-04 11:25:01 +0000
commit0e05096f98d957d90a59eff0b5a081d112fd329f (patch)
tree3a74ec3dcc5a8ac08a641532fda73cc90f4daf3e
parentf4a87ce48789b01f2b19c098f90841e47caf3049 (diff)
Fix websummary to work with latest rdf tools
-rw-r--r--websummary.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/websummary.sh b/websummary.sh
index 0db3177..5922863 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 $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'`
+ home=`echo $r | awk -F , '{print $1}' | sed 's/uri(//;s/)$//'`
+ repo=`echo $r | awk -F , '{print $2}' | sed 's/uri(//;s/)$//'`
+ licenseuri=`echo $r | awk -F , '{print $3}' | sed 's/uri(//;s/)$//'`
+ maint=`echo $r | awk -F , '{print $4}' | sed 's/"//g'`
+ mainthome=`echo $r | awk -F , '{print $5}' | sed 's/uri(//;s/)$//'`
+ lang=`echo $r | awk -F , '{print $6}' | 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 $8}' | sed 's/uri(//;s/)$//'`
+ repotype=`echo $r | awk -F , '{print $7}' | sed 's/uri(//;s/)$//'`
test "$repotype" = "http://usefulinc.com/ns/doap#GitRepository" && repocmd="git clone"
cat <<- _EOF_