summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-02-17 07:47:28 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-02-17 07:47:28 -0500
commit686745b5cc7fd7c30683ebe2ac7f1f2e0328eec0 (patch)
tree3dbbad107cd90ae2aa61aa5cfec27e8a55236237
parente17d0484bdc94cda1477479bee8111a65df2579c (diff)
downloadgpsd-686745b5cc7fd7c30683ebe2ac7f1f2e0328eec0.tar.gz
Improved building of the hardware page.
-rw-r--r--Makefile.am2
-rw-r--r--gpscap.py8
2 files changed, 7 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 34bcb587..7338ce97 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -882,7 +882,7 @@ www/writing-a-driver.html: www/writing-a-driver.xml
www/index.html: www/index.html.in
sed -e "/@DATE@/s//`date '+%B %d, %Y'`/" <www/index.html.in >www/index.html
-www/hardware.html: www/hardware-head.html gpscap.ini www/hardware-tail.html
+www/hardware.html: gpscap.py www/hardware-head.html gpscap.ini www/hardware-tail.html
(cat www/hardware-head.html; python gpscap.py; cat www/hardware-tail.html) >www/hardware.html
www/performance/performance.html: www/performance/performance.xml
diff --git a/gpscap.py b/gpscap.py
index 950284a1..f8562fad 100644
--- a/gpscap.py
+++ b/gpscap.py
@@ -147,5 +147,9 @@ class GPSDictionary(ConfigParser.RawConfigParser):
if __name__ == "__main__":
import sys
- d = GPSDictionary()
- d.HTMLDump(sys.stdout)
+ try:
+ d = GPSDictionary()
+ d.HTMLDump(sys.stdout)
+ except ConfigParser.Error, e:
+ print >>sys.stderr, sys.argv[0]+":", e._Error__message
+ raise SystemExit, 1