summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdevtools/ais.py3
-rwxr-xr-xdevtools/aivdmtable3
-rwxr-xr-xdevtools/cycle_analyzer3
-rwxr-xr-xdevtools/fakecompare3
-rwxr-xr-xdevtools/flocktest3
-rw-r--r--devtools/gpsdfake9
-rwxr-xr-xdevtools/leapsecond.py3
-rwxr-xr-xdevtools/logextract3
-rwxr-xr-xdevtools/regress-builder3
-rwxr-xr-xdevtools/regressdiff3
-rwxr-xr-xdevtools/striplog3
11 files changed, 36 insertions, 3 deletions
diff --git a/devtools/ais.py b/devtools/ais.py
index e5e4f9c7..319f5f3d 100755
--- a/devtools/ais.py
+++ b/devtools/ais.py
@@ -2,6 +2,9 @@
#
# A Python AIVDM/AIVDO decoder
#
+# This file is Copyright (c) 2010 by the GPSD project
+# BSD terms apply: see the file COPYING in the distribution root for details.
+#
# This decoder works by defining a declarative pseudolanguage in which
# to describe the process of extracting packed bitfields from an AIS
# message, a set of tables which contain instructions in the pseudolanguage,
diff --git a/devtools/aivdmtable b/devtools/aivdmtable
index b1a1e550..aef8a6ad 100755
--- a/devtools/aivdmtable
+++ b/devtools/aivdmtable
@@ -1,6 +1,9 @@
#!/usr/bin/env python
#
# Generate an asciidoc table of the six-bit encoding used in AIVDM packets.
+#
+# This file is Copyright (c) 2010 by the GPSD project
+# BSD terms apply: see the file COPYING in the distribution root for details.
sixbits = (
"000000", "000001", "000010", "000011", "000100",
diff --git a/devtools/cycle_analyzer b/devtools/cycle_analyzer
index f80cc445..f38c3859 100755
--- a/devtools/cycle_analyzer
+++ b/devtools/cycle_analyzer
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+#
+# This file is Copyright (c) 2010 by the GPSD project
+# BSD terms apply: see the file COPYING in the distribution root for details.
"""
cycle_analyzer - perform cycle analysis on GPS log files
diff --git a/devtools/fakecompare b/devtools/fakecompare
index 81cc3ce6..d7b0d4c7 100755
--- a/devtools/fakecompare
+++ b/devtools/fakecompare
@@ -4,6 +4,9 @@
# machine and a remote one. Especially useful when remote and local
# have different word lengths.
#
+# This file is Copyright (c) 2010 by the GPSD project
+# BSD terms apply: see the file COPYING in the distribution root for details.
+#
file=$1
remote=$2
diff --git a/devtools/flocktest b/devtools/flocktest
index be90e545..6e1894a3 100755
--- a/devtools/flocktest
+++ b/devtools/flocktest
@@ -1,5 +1,8 @@
#!/usr/bin/env python
#
+# This file is Copyright (c) 2010 by the GPSD project
+# BSD terms apply: see the file COPYING in the distribution root for details.
+#
"""\
flocktest - shepherd script for the GPSD test flock
diff --git a/devtools/gpsdfake b/devtools/gpsdfake
index b3341a6a..72557e0d 100644
--- a/devtools/gpsdfake
+++ b/devtools/gpsdfake
@@ -1,3 +1,5 @@
+# This file is Copyright (c) 2010 by the GPSD project
+# BSD terms apply: see the file COPYING in the distribution root for details.
"""
gpsdfake - a fake gpsd server that spews specified data at gpsd clients.
"""
@@ -11,10 +13,12 @@ class FakeHandler(SocketServer.BaseRequestHandler):
# self.request is the TCP socket connected to the client
# Read the client's ?WATCH request.
self.data = self.request.recv(1024).strip()
- # Send a fake banner to the client on startup
+ # We'd like to send a fake banner to the client on startup,
+ # but there's no (documented) method for that. We settle
+ # for shipping on first request.
self.request.send('{"class":"VERSION",'
'"version":"gpsdfake","rev":"gpsdfake",'
- '"proto_major":3,"proto_minor":1}"')
+ '"proto_major":3,"proto_minor":1}\r\n')
# Perpetually resend the data we have specified
while True:
for line in lines:
@@ -33,7 +37,6 @@ if __name__ == "__main__":
# Create the server, binding to localhost on port 2947
server = SocketServer.TCPServer((HOST, PORT), FakeHandler)
-
# Activate the server; this will keep running until you
# interrupt the program with Ctrl-C
server.serve_forever()
diff --git a/devtools/leapsecond.py b/devtools/leapsecond.py
index 8c1e5ab2..a2c83136 100755
--- a/devtools/leapsecond.py
+++ b/devtools/leapsecond.py
@@ -4,6 +4,9 @@
# GPS time, which changes occasionally due to variations in the Earth's
# rotation.
#
+# This file is Copyright (c) 2010 by the GPSD project
+# BSD terms apply: see the file COPYING in the distribution root for details.
+#
import os, urllib, re, random, time, calendar
__locations = [
diff --git a/devtools/logextract b/devtools/logextract
index ed427e0e..42a08480 100755
--- a/devtools/logextract
+++ b/devtools/logextract
@@ -1,6 +1,9 @@
#!/bin/sh
# Extract pure NMEA from an emailed gpsd error log.
# The output can be fed to gpsfake.
+#
+# This file is Copyright (c) 2010 by the GPSD project
+# BSD terms apply: see the file COPYING in the distribution root for details.
sed -n -e "/^> */s///" -e "/gpsd: <= GPS: /s///" -e '/^\$/p'
diff --git a/devtools/regress-builder b/devtools/regress-builder
index eef5f9d7..c16e4ff2 100755
--- a/devtools/regress-builder
+++ b/devtools/regress-builder
@@ -1,4 +1,7 @@
#!/bin/env python
+#
+# This file is Copyright (c) 2010 by the GPSD project
+# BSD terms apply: see the file COPYING in the distribution root for details.
"""
usage: regress-builder [-r limit] [-s seed]
diff --git a/devtools/regressdiff b/devtools/regressdiff
index 89c72a6d..947fa8aa 100755
--- a/devtools/regressdiff
+++ b/devtools/regressdiff
@@ -2,6 +2,9 @@
#
# Walk through a pair of textfiles looking for where they begin to differ.
# May be useful for comparing logs when regression tests break.
+#
+# This file is Copyright (c) 2010 by the GPSD project
+# BSD terms apply: see the file COPYING in the distribution root for details.
import sys
diff --git a/devtools/striplog b/devtools/striplog
index 8bd46d6d..bb73044e 100755
--- a/devtools/striplog
+++ b/devtools/striplog
@@ -5,6 +5,9 @@
# striplog -1 strips the first line only.
# striplog with no option strips all leading lines beginning with #
#
+# This file is Copyright (c) 2010 by the GPSD project
+# BSD terms apply: see the file COPYING in the distribution root for details.
+#
import getopt, sys
firstline = False