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 prepare the commit log message.
group-ESP8266 0:b887535f68bf 4 # Called by "git commit" with the name of the file that has the
group-ESP8266 0:b887535f68bf 5 # commit message, followed by the description of the commit
group-ESP8266 0:b887535f68bf 6 # message's source. The hook's purpose is to edit the commit
group-ESP8266 0:b887535f68bf 7 # message file. If the hook fails with a non-zero status,
group-ESP8266 0:b887535f68bf 8 # the commit is aborted.
group-ESP8266 0:b887535f68bf 9 #
group-ESP8266 0:b887535f68bf 10 # To enable this hook, rename this file to "prepare-commit-msg".
group-ESP8266 0:b887535f68bf 11
group-ESP8266 0:b887535f68bf 12 # This hook includes three examples. The first comments out the
group-ESP8266 0:b887535f68bf 13 # "Conflicts:" part of a merge commit.
group-ESP8266 0:b887535f68bf 14 #
group-ESP8266 0:b887535f68bf 15 # The second includes the output of "git diff --name-status -r"
group-ESP8266 0:b887535f68bf 16 # into the message, just before the "git status" output. It is
group-ESP8266 0:b887535f68bf 17 # commented because it doesn't cope with --amend or with squashed
group-ESP8266 0:b887535f68bf 18 # commits.
group-ESP8266 0:b887535f68bf 19 #
group-ESP8266 0:b887535f68bf 20 # The third example adds a Signed-off-by line to the message, that can
group-ESP8266 0:b887535f68bf 21 # still be edited. This is rarely a good idea.
group-ESP8266 0:b887535f68bf 22
group-ESP8266 0:b887535f68bf 23 case "$2,$3" in
group-ESP8266 0:b887535f68bf 24 merge,)
group-ESP8266 0:b887535f68bf 25 /usr/bin/perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;;
group-ESP8266 0:b887535f68bf 26
group-ESP8266 0:b887535f68bf 27 # ,|template,)
group-ESP8266 0:b887535f68bf 28 # /usr/bin/perl -i.bak -pe '
group-ESP8266 0:b887535f68bf 29 # print "\n" . `git diff --cached --name-status -r`
group-ESP8266 0:b887535f68bf 30 # if /^#/ && $first++ == 0' "$1" ;;
group-ESP8266 0:b887535f68bf 31
group-ESP8266 0:b887535f68bf 32 *) ;;
group-ESP8266 0:b887535f68bf 33 esac
group-ESP8266 0:b887535f68bf 34
group-ESP8266 0:b887535f68bf 35 # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
group-ESP8266 0:b887535f68bf 36 # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"