Version of easy-connect with the u-blox cellular platforms C027 and C030 added.

Dependents:   HelloMQTT

Committer:
RobMeades
Date:
Fri Nov 03 13:01:23 2017 +0000
Revision:
6:304d3ba87a01
Parent:
0:19aa55d66228
Add comment concerning N2XX baud rate.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
group-ublox 0:19aa55d66228 1 #!/bin/sh
group-ublox 0:19aa55d66228 2 #
group-ublox 0:19aa55d66228 3 # An example hook script to check the commit log message.
group-ublox 0:19aa55d66228 4 # Called by "git commit" with one argument, the name of the file
group-ublox 0:19aa55d66228 5 # that has the commit message. The hook should exit with non-zero
group-ublox 0:19aa55d66228 6 # status after issuing an appropriate message if it wants to stop the
group-ublox 0:19aa55d66228 7 # commit. The hook is allowed to edit the commit message file.
group-ublox 0:19aa55d66228 8 #
group-ublox 0:19aa55d66228 9 # To enable this hook, rename this file to "commit-msg".
group-ublox 0:19aa55d66228 10
group-ublox 0:19aa55d66228 11 # Uncomment the below to add a Signed-off-by line to the message.
group-ublox 0:19aa55d66228 12 # Doing this in a hook is a bad idea in general, but the prepare-commit-msg
group-ublox 0:19aa55d66228 13 # hook is more suited to it.
group-ublox 0:19aa55d66228 14 #
group-ublox 0:19aa55d66228 15 # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
group-ublox 0:19aa55d66228 16 # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
group-ublox 0:19aa55d66228 17
group-ublox 0:19aa55d66228 18 # This example catches duplicate Signed-off-by lines.
group-ublox 0:19aa55d66228 19
group-ublox 0:19aa55d66228 20 test "" = "$(grep '^Signed-off-by: ' "$1" |
group-ublox 0:19aa55d66228 21 sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || {
group-ublox 0:19aa55d66228 22 echo >&2 Duplicate Signed-off-by lines.
group-ublox 0:19aa55d66228 23 exit 1
group-ublox 0:19aa55d66228 24 }