From 8665cb69efbee6a6e896fa00d69db8aa8b8a691a Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 6 Aug 2010 00:25:32 +0100 Subject: Updated web page, set defaults from config.h --- web/doapbutton.sh | 28 ---------------------------- web/doapfooter.sh | 40 ---------------------------------------- web/doapheader.sh | 30 ------------------------------ web/footer.html | 1 + web/header.html | 16 ++++++++++++++++ web/index.html | 42 ------------------------------------------ web/index.txt | 37 +++++++++++++++++++++++++++++++++++++ web/makepage.sh | 38 -------------------------------------- web/screen.png | Bin 2625 -> 2280 bytes web/summary.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 10 files changed, 94 insertions(+), 178 deletions(-) delete mode 100644 web/doapbutton.sh delete mode 100644 web/doapfooter.sh delete mode 100644 web/doapheader.sh create mode 100644 web/footer.html create mode 100644 web/header.html delete mode 100644 web/index.html create mode 100644 web/index.txt delete mode 100644 web/makepage.sh create mode 100644 web/summary.sh (limited to 'web') diff --git a/web/doapbutton.sh b/web/doapbutton.sh deleted file mode 100644 index 21da477..0000000 --- a/web/doapbutton.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -test $# -ne 1 && echo "usage: $0 doap" && exit 1 - -rdf="$1" - -q="PREFIX doap: -PREFIX foaf: -SELECT ?name ?ver ?file -WHERE { -?p a doap:Project; - doap:name ?name; - doap:release ?rel. -?rel doap:revision ?ver; - doap:file-release ?file. -}" - -roqet -q -r csv -e "$q" -D /dev/stdin < $rdf | sed '/^Result/d' \ -| while read r; do - name=`echo $r | awk -F , '{print $2}'| sed -e 's/"\(.*\)"/\1/'` - version=`echo $r | awk -F , '{print $3}'| sed -e 's/"\(.*\)"/\1/'` - fileurl=`echo $r | awk -F , '{print $4}'| sed -e 's/uri(\(.*\))/\1/'` - - cat <<- _EOF_ -### [Download $name $version]($fileurl) -### ([GPG signature]($fileurl.sig)) -_EOF_ -done diff --git a/web/doapfooter.sh b/web/doapfooter.sh deleted file mode 100644 index ef58225..0000000 --- a/web/doapfooter.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh - -test $# -ne 1 && echo "usage: $0 doap" && exit 1 - -rdf="$1" - -q="PREFIX doap: -PREFIX foaf: -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 diff --git a/web/doapheader.sh b/web/doapheader.sh deleted file mode 100644 index ca2b5f9..0000000 --- a/web/doapheader.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -test $# -ne 1 && echo "usage: $0 doap" && exit 1 - -rdf="$1" - -q="PREFIX doap: -PREFIX foaf: -SELECT ?name ?desc -WHERE { -?p a doap:Project; - doap:name ?name; - doap:description ?desc. -}" - -roqet -q -r csv -e "$q" -D /dev/stdin < $rdf | sed '/^Result/d' \ -| while read r; do - name=`echo $r | awk -F , '{print $2}'| sed -e 's/"\(.*\)"/\1/'` - desc=`echo $r | awk -F , '{print $3}'| sed -e 's/"\(.*\)"/\1/'` - - cat <<- _EOF_ -$name -======================================================================= - -About ------ - -$desc -_EOF_ -done diff --git a/web/footer.html b/web/footer.html new file mode 100644 index 0000000..62b274f --- /dev/null +++ b/web/footer.html @@ -0,0 +1 @@ + diff --git a/web/header.html b/web/header.html new file mode 100644 index 0000000..fed7a0b --- /dev/null +++ b/web/header.html @@ -0,0 +1,16 @@ + + + +Spout - A simple caveflying game + diff --git a/web/index.html b/web/index.html deleted file mode 100644 index 6fc6497..0000000 --- a/web/index.html +++ /dev/null @@ -1,42 +0,0 @@ - - - -Spout - A simple caveflying game - - -

Spout

- -

About

-

Spout is a simple caveflying game. The aim is to get as high as possible avoiding or destroying obstacles.

-

screenshot of Spout - A simple caveflying game

-

Download Spout 1.4
-(GPG signature)

- -

History

-

Spout was originally written for a handheld by kuni, and soon -afterwards was ported to Windows using cygwin and sdl and released -under the MIT license.

-

In 2004 a 'unix version' was released, which mostly just slapped -autotools into the windows version and infringed the license.

-

This is a new unix version, based on the original Windows code by -kuni, which aims to add useful features and simplify the code.

-
- - diff --git a/web/index.txt b/web/index.txt new file mode 100644 index 0000000..4fa26ad --- /dev/null +++ b/web/index.txt @@ -0,0 +1,37 @@ +Spout +======================================================================= + +About +----- + +Spout is a simple caveflying game. The aim is to get as high as +possible avoiding or destroying obstacles. + +![Screenshot of Spout](screen.png) + +It should work on any *nix system with SDL libraries installed. + +Spout is free software released under the terms of the MIT license. + +### [Download Spout 1.4](releases/spout-1.4.tar.gz) +### ([GPG signature](releases/spout-1.4.tar.gz.sig)) + +History +------- + +Spout was originally written for a handheld by kuni, and soon +afterwards was ported to Windows using cygwin and sdl and released +under the MIT license. + +In 2004 a 'unix version' was released, which mostly just slapped +autotools into the windows version and infringed the license. + +This is a new unix version, based on the original Windows code by +kuni, which aims to add useful features and simplify the code. + +Development +----------- + +Please send any patches, bugs or general thoughts to me by +[email](http://njw.me.uk/contact). A list of current issues to +work on can be found in the TODO file in the repository. diff --git a/web/makepage.sh b/web/makepage.sh deleted file mode 100644 index b2ad2ce..0000000 --- a/web/makepage.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -test $# -ne 2 && echo "usage: $0 title doap" && exit 1 - -title="$1" - -cat <<- _EOF_ - - - -$title - -_EOF_ - -sh web/doapheader.sh "$2" | smu - -echo "![screenshot of $title](screen.png)"|smu - -sh web/doapbutton.sh "$2" | smu - -tail -n 12 < README | smu # history - -echo "- - -"|smu - -sh web/doapfooter.sh "$2" |smu - -echo "" diff --git a/web/screen.png b/web/screen.png index 07b6714..6a20078 100644 Binary files a/web/screen.png and b/web/screen.png differ diff --git a/web/summary.sh b/web/summary.sh new file mode 100644 index 0000000..ef58225 --- /dev/null +++ b/web/summary.sh @@ -0,0 +1,40 @@ +#!/bin/sh + +test $# -ne 1 && echo "usage: $0 doap" && exit 1 + +rdf="$1" + +q="PREFIX doap: +PREFIX foaf: +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 -- cgit v1.2.3