aboutsummaryrefslogtreecommitdiffstats
path: root/generate_debug_h.sh
diff options
context:
space:
mode:
authorPA4WDH2024-09-01 16:51:48 +0200
committerPA4WDH2024-09-01 16:51:48 +0200
commitd59831d74e2c8a67cbee03f2630bac1753635a93 (patch)
treec86f9aa9d694e7b64c0f864bfa35c8ca8ee694fc /generate_debug_h.sh
parentAdd more compiler warnings (diff)
downloadcputemp2maxfreq-d59831d74e2c8a67cbee03f2630bac1753635a93.tar.gz
cputemp2maxfreq-d59831d74e2c8a67cbee03f2630bac1753635a93.tar.bz2
cputemp2maxfreq-d59831d74e2c8a67cbee03f2630bac1753635a93.zip
Include GPL version 3 license and copyright notices
Diffstat (limited to 'generate_debug_h.sh')
-rwxr-xr-xgenerate_debug_h.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/generate_debug_h.sh b/generate_debug_h.sh
index 8d0a1d4..cb66634 100755
--- a/generate_debug_h.sh
+++ b/generate_debug_h.sh
@@ -1,5 +1,22 @@
#!/bin/sh
#
+# This file is part of cputemp2maxfreq.
+#
+# Copyright (C) 2023, 2024 pa4wdh
+#
+# cputemp2maxfreq is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# cputemp2maxfreq is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with cputemp2maxfreq. If not, see <https://www.gnu.org/licenses/>.
+#
# Script to generate debug.h
# Output goes to stdout, this should be redirected by the caller
@@ -12,6 +29,13 @@ HEXDUMP_HELPER_DEF=`grep -o "void .*(unsigned char \*data,int len)" debug.c`
HEXDUMP_HELPER=${HEXDUMP_HELPER_DEF#* }
HEXDUMP_HELPER=${HEXDUMP_HELPER%%(*}
+# Generate a GPL license header
+head -n 17 cputemp2maxfreq.c
+echo ""
+echo " This file is generated by $0,"
+echo " do not edit anything other than the configuration section."
+echo "*/"
+
# Generate the configuration part
cat << EOF
#ifndef HAVE_DEBUG_H