You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/01/20 14:04:29 UTC
[incubator-nuttx] 01/04: Fix the comment header style in tools
folder
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch pr131
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit bb6c70bdcc8517ef03e18e0704b3dcc1367b03c7
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Jan 20 01:03:11 2020 +0800
Fix the comment header style in tools folder
Change-Id: I189a0e8b86f3af682111668ccdad64a52b48dcb4
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
tools/Config.mk | 2 +-
tools/Makefile.export | 2 +-
tools/Makefile.host | 2 +-
tools/checkpatch.sh | 1 +
tools/flash_writer.py | 3 ++-
tools/mkconfigvars.sh | 2 +-
tools/mkctags.sh | 2 +-
tools/noteinfo.c | 35 +++++++++++++++++++++++++++++++++++
tools/ocdconsole.py | 1 +
tools/refresh.sh | 2 +-
tools/testbuild.sh | 2 +-
tools/uncrustify.cfg | 1 +
tools/version.sh | 2 +-
tools/zipme.sh | 2 +-
14 files changed, 49 insertions(+), 10 deletions(-)
diff --git a/tools/Config.mk b/tools/Config.mk
index be66d8b..2a45f5b 100644
--- a/tools/Config.mk
+++ b/tools/Config.mk
@@ -1,5 +1,5 @@
############################################################################
-# Config.mk
+# tools/Config.mk
# Global build rules and macros.
#
# Copyright (C) 2011, 2013-2014, 2018-2019 Gregory Nutt. All rights
diff --git a/tools/Makefile.export b/tools/Makefile.export
index 56f30c6..25db226 100644
--- a/tools/Makefile.export
+++ b/tools/Makefile.export
@@ -1,5 +1,5 @@
############################################################################
-# Makefile.export
+# tools/Makefile.export
#
# Copyright (C) 2011, 2014 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gn...@nuttx.org>
diff --git a/tools/Makefile.host b/tools/Makefile.host
index 87560ad..07ebe9e 100644
--- a/tools/Makefile.host
+++ b/tools/Makefile.host
@@ -1,5 +1,5 @@
############################################################################
-# Makefile.host
+# tools/Makefile.host
#
# Copyright (C) 2007, 2008, 2011-2012, 2015, 2017-2018 Gregory Nutt. All
# rights reserved.
diff --git a/tools/checkpatch.sh b/tools/checkpatch.sh
index e65f15b..574b9d7 100755
--- a/tools/checkpatch.sh
+++ b/tools/checkpatch.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# tools/checkpatch.sh
#
# Copyright (C) 2019 Xiaomi
#
diff --git a/tools/flash_writer.py b/tools/flash_writer.py
index 840f10c..b279915 100755
--- a/tools/flash_writer.py
+++ b/tools/flash_writer.py
@@ -1,4 +1,5 @@
-#! /usr/bin/env python3
+#!/usr/bin/env python3
+# tools/flash_writer.py
# Copyright (C) 2018 Sony Semiconductor Solutions Corp.
#
diff --git a/tools/mkconfigvars.sh b/tools/mkconfigvars.sh
index 4a5077a..c01a2e4 100755
--- a/tools/mkconfigvars.sh
+++ b/tools/mkconfigvars.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# mkconfivars.sh
+# tools/mkconfivars.sh
#
# Copyright (C) 2013 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gn...@nuttx.org>
diff --git a/tools/mkctags.sh b/tools/mkctags.sh
index 36bc6f9..55b0b1c 100755
--- a/tools/mkctags.sh
+++ b/tools/mkctags.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# mkctags.sh
+# tools/mkctags.sh
#
# Copyright (C) 2013 Ken pettit All rights reserved.
# Author: Ken pettit <pe...@gmail.com>
diff --git a/tools/noteinfo.c b/tools/noteinfo.c
index 3cdc843..4bac4f0 100644
--- a/tools/noteinfo.c
+++ b/tools/noteinfo.c
@@ -1,3 +1,38 @@
+/****************************************************************************
+ * tools/noteinfo.c
+ *
+ * Copyright (C) 2020 Gregory Nutt. All rights reserved.
+ * Author: Gregory Nutt <gn...@nuttx.org>
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ * 3. Neither the name NuttX nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ ****************************************************************************/
+
#include <stdio.h>
#include <stdlib.h>
diff --git a/tools/ocdconsole.py b/tools/ocdconsole.py
index c9ec08e..a2ad072 100755
--- a/tools/ocdconsole.py
+++ b/tools/ocdconsole.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+# tools/ocdconsole.py
#
# Copyright (C) 2019 Dave Marples. All rights reserved.
# Author: Dave Marples <da...@marples.net>
diff --git a/tools/refresh.sh b/tools/refresh.sh
index 914a52e..6f1f495 100755
--- a/tools/refresh.sh
+++ b/tools/refresh.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# refresh.sh
+# tools/refresh.sh
#
# Copyright (C) 2014, 2016-2017, 2019 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gn...@nuttx.org>
diff --git a/tools/testbuild.sh b/tools/testbuild.sh
index ca4695d..803494b 100755
--- a/tools/testbuild.sh
+++ b/tools/testbuild.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# testbuild.sh
+# tools/testbuild.sh
#
# Copyright (C) 2016-2019 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gn...@nuttx.org>
diff --git a/tools/uncrustify.cfg b/tools/uncrustify.cfg
index b6eebc4..b3f9ff7 100644
--- a/tools/uncrustify.cfg
+++ b/tools/uncrustify.cfg
@@ -1,3 +1,4 @@
+# tools/uncrustify.cfg
#
# uncrustify config file for NuttX
#
diff --git a/tools/version.sh b/tools/version.sh
index 8e3f57b..31e8412 100755
--- a/tools/version.sh
+++ b/tools/version.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# version.sh
+# tools/version.sh
#
# Copyright (C) 2011, 2019 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gn...@nuttx.org>
diff --git a/tools/zipme.sh b/tools/zipme.sh
index f84387e..2a0ff1f 100755
--- a/tools/zipme.sh
+++ b/tools/zipme.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# zipme.sh
+# tools/zipme.sh
#
# Copyright (C) 2007-2011, 2013 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gn...@nuttx.org>