summaryrefslogtreecommitdiff
path: root/web/summary.sh
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-10-24 23:06:08 +0100
committerNick White <git@njw.me.uk>2010-10-24 23:06:08 +0100
commit089c905ebd7e365791112f8a9f1f2a44de5987a1 (patch)
treeaeb259d381678bbbdd11d75b92bc3c5dd1da85ad /web/summary.sh
parent4bb3e07baabf1ef6ca5c9fea389045dddd77025b (diff)
Simplify and update webpage creation
Diffstat (limited to 'web/summary.sh')
-rw-r--r--web/summary.sh40
1 files changed, 0 insertions, 40 deletions
diff --git a/web/summary.sh b/web/summary.sh
deleted file mode 100644
index ef58225..0000000
--- a/web/summary.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-test $# -ne 1 && echo "usage: $0 doap" && exit 1
-
-rdf="$1"
-
-q="PREFIX doap: <http://usefulinc.com/ns/doap#>
-PREFIX foaf: <http://xmlns.com/foaf/0.1/>
-SELECT ?home ?repo ?license ?maintainer ?maintainerhome ?lang
-WHERE {
-?p a doap:Project;
- doap:homepage ?home;
- doap:repository ?r;
- doap:license ?license;
- doap:programming-language ?lang;
- doap:maintainer ?m.
-?r doap:location ?repo.
-?m foaf:name ?maintainer;
- foaf:homepage ?maintainerhome.
-}"
-
-roqet -q -r csv -e "$q" -D /dev/stdin < $rdf | sed '/^Result/d' \
-| while read r; do
- home=`echo $r | awk -F , '{print $2}'| sed -e 's/uri(\(.*\))/\1/'`
- repo=`echo $r | awk -F , '{print $3}'| sed -e 's/uri(\(.*\))/\1/'`
- licenseuri=`echo $r | awk -F , '{print $4}'| sed -e 's/uri(\(.*\))/\1/'`
- maint=`echo $r | awk -F , '{print $5}'| sed -e 's/"\(.*\)"/\1/'`
- mainthome=`echo $r | awk -F , '{print $6}'| sed -e 's/uri(\(.*\))/\1/'`
- lang=`echo $r | awk -F , '{print $7}'| sed -e 's/"\(.*\)"/\1/'`
- test "$licenseuri" = "http://www.gnu.org/licenses/gpl.html" && license="GPL"
- test "$licenseuri" = "http://creativecommons.org/licenses/MIT/" && license="MIT"
-
- cat <<- _EOF_
-- Project homepage: [$home]($home)
-- Code repository: [$repo]($repo)
-- Maintainer: [$maint]($mainthome)
-- Language: $lang
-- License: [$license]($licenseuri)
-_EOF_
-done