summaryrefslogtreecommitdiffstats
path: root/web-gui
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-06-04 12:44:35 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-06-04 12:58:39 +0200
commitc66e873ca11db0c81dac67c4715f81ada5ae435c (patch)
tree47ac2678fe30cc6f2d4ddc31a20808319a146a8d /web-gui
parente4daa67ea3c8893aad6483c057ce1794a3be4374 (diff)
downloadjson-dbus-bridge-examples-c66e873ca11db0c81dac67c4715f81ada5ae435c.tar.gz
[web-gui] generate top-level index.html
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'web-gui')
-rw-r--r--web-gui/Makefile.am11
-rwxr-xr-xweb-gui/index.sh25
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
+