diff options
Diffstat (limited to 'web-gui')
-rw-r--r-- | web-gui/Makefile.am | 11 | ||||
-rwxr-xr-x | web-gui/index.sh | 25 |
2 files changed, 36 insertions, 0 deletions
diff --git a/web-gui/Makefile.am b/web-gui/Makefile.am index e0304e9..5cf8e07 100644 --- a/web-gui/Makefile.am +++ b/web-gui/Makefile.am @@ -3,9 +3,20 @@ SUBDIRS = \ hello-world \ calculator +all: index.html + +index.html: index.sh + sh $< $(SUBDIRS) > $@ + clean-local: rm -rf qooxdoo-cache +EXTRA_DIST = \ + index.sh + +CLEANFILES = \ + index.html + MAINTAINERCLEANFILES = \ Makefile.in diff --git a/web-gui/index.sh b/web-gui/index.sh new file mode 100755 index 0000000..6a9622c --- /dev/null +++ b/web-gui/index.sh @@ -0,0 +1,25 @@ +#!/bin/sh + + +cat << EOF +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>JSON-D-BUS-Bridge Examples</title> +</head> +<body> +<h1>JSON-D-BUS-Bridge Examples</h1> +<ul> +EOF + +for example in "$@"; do + echo "<li><a href=$example/build/>$example</a></li>" +done + +cat << EOF +</ul> +</body> +</html> +EOF + |