summaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-10 18:55:46 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-10 18:55:46 -0400
commitad82e6af0ee48ab2acac8f929f7a126ecc634fd0 (patch)
tree3c863a1a00a44cb586997e12b9f53783dc283027 /devtools
parent36ff885bc7d7d906ce63f29dd04e9364a37590da (diff)
downloadgpsd-ad82e6af0ee48ab2acac8f929f7a126ecc634fd0.tar.gz
A script for the front end of a Coverity self-build.
Diffstat (limited to 'devtools')
-rw-r--r--devtools/README4
-rwxr-xr-xdevtools/cov-scan33
2 files changed, 37 insertions, 0 deletions
diff --git a/devtools/README b/devtools/README
index c475e54e..22b44f6d 100644
--- a/devtools/README
+++ b/devtools/README
@@ -18,6 +18,10 @@ list of AIS types.
Generate an asciidoc table of the six-bit encoding used in AIVDM packets.
+== cov-scan ==
+
+Prepare a Coverity self-build of the project.
+
== cycle_analyzer ==
Finds end-of-cycle sentences from GPS output logs.
diff --git a/devtools/cov-scan b/devtools/cov-scan
new file mode 100755
index 00000000..ef83f5fd
--- /dev/null
+++ b/devtools/cov-scan
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# Perform a Coverity self-build on the GPSD code.
+# The build tool gets confused if you try to run it direct from scons.
+#
+# Where the Coverity tools live
+PATH=$PATH:/usr/local/coverity/bin
+#
+# scp destination to drop tarball, can be anywhere web-accessible
+DROP_SCP=esr@login.ibiblio.org:/public/html/catb/esr
+#
+# Public URL for the drop destination
+DROP_HTML=http://catb.org/~esr
+
+echo "Rebuilding and scanning..."
+scons -c
+rm -fr cov-int
+cov-build --dir cov-int /usr/bin/scons
+
+echo "Bundling up required metadata..."
+cat >/tmp/README <<EOF
+Username: esr
+Project: gpsd
+EOF
+mv cov-int /tmp;
+(cd /tmp; tar -czf gpsd-scan.tgz README cov-int; rm -fr cov-int)
+
+echo "Uploading to where it's publicly visible..."
+scp /tmp/gpsd-scan.tgz $DROP_SCP; rm /tmp/gpsd-scan.tgz
+
+# Post the URL
+url=$DROP_HTML/gpsd-scan.tgz
+echo $url