OneNet_IoT_demo for ASC platform

Dependencies:   Common_lib ESP8266 EdpKit_lib cJSON_lib driver_mbed_HP20x driver_mbed_TH02 wifi_example

Fork of mbed-os-example-esp8266 by ESP8266

Committer:
group-ESP8266
Date:
Thu Jan 12 20:21:45 2017 +0000
Revision:
0:b887535f68bf
Initial commit

Who changed what in which revision?

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