From 6a4c9a2a817682755bf6c8cd640f9fb257aefa5b Mon Sep 17 00:00:00 2001
From: Erik Hofman <erik@ehofman.com>
Date: Fri, 5 Jun 2020 11:31:57 +0200
Subject: [PATCH] Add a license exception to single owner (Melchoir Franz and
 myself) that clarifies that merely calling Nasal functions from third party
 aircraft does not invoce the derived-work clause of the GPL. Signed of by
 Melchoir.

---
 Nasal/bits.nas         |  9 +++++++++
 Nasal/dynamic_view.nas | 10 ++++++++++
 Nasal/multikey.nas     |  9 +++++++++
 Nasal/windsock.nas     |  8 ++++++++
 4 files changed, 36 insertions(+)

diff --git a/Nasal/bits.nas b/Nasal/bits.nas
index 0af9bd242..0de8633d8 100644
--- a/Nasal/bits.nas
+++ b/Nasal/bits.nas
@@ -1,3 +1,12 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# NOTE! This copyright does *not* cover user models that use these Nasal
+# services by normal function calls - this is merely considered normal
+# use of the code, and does *not* fall under the heading of "derived
+# work."
+#
+# Copyright (C) 2008 by mfranz
+
 var bit = [var _ = 1];
 for (var i = 1; i < 32; i += 1)
 	append(bit, _ += _);
diff --git a/Nasal/dynamic_view.nas b/Nasal/dynamic_view.nas
index 335aad06c..3bdcee4ba 100644
--- a/Nasal/dynamic_view.nas
+++ b/Nasal/dynamic_view.nas
@@ -1,3 +1,13 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# NOTE! This copyright does *not* cover user models that use these Nasal
+# services by normal function calls - this is merely considered normal
+# use of the code, and does *not* fall under the heading of "derived
+# work."
+#
+# Copyright (C) 2006-2008 by mfranz
+
+
 # Dynamic Cockpit View manager. Tries to simulate the pilot's most likely
 # deliberate view direction. Doesn't consider forced view changes due to
 # acceleration.
diff --git a/Nasal/multikey.nas b/Nasal/multikey.nas
index f2ebcd315..41b0d3169 100644
--- a/Nasal/multikey.nas
+++ b/Nasal/multikey.nas
@@ -1,3 +1,12 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# NOTE! This copyright does *not* cover user models that use these Nasal
+# services by normal function calls - this is merely considered normal
+# use of the code, and does *not* fall under the heading of "derived
+# work."
+#
+# Copyright (C) 2008 by mfranz
+
 var translate = { 356: '<', 357: '^', 358: '>', 359: '_' };
 var listener = nil;
 var dialog = nil;
diff --git a/Nasal/windsock.nas b/Nasal/windsock.nas
index ae2332b05..47ef8c0ab 100644
--- a/Nasal/windsock.nas
+++ b/Nasal/windsock.nas
@@ -4,6 +4,14 @@
 ##
 ###############################################################################
 
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# NOTE! This copyright does *not* cover user models that use these Nasal
+# services by normal function calls - this is merely considered normal use
+# of the code, and does *not* fall under the heading of "derived work."
+#
+# Copyright (C) 2017-2020 by Erik Hofman
+
 var dt = 0.0;
 var windsock = func {
   var wind = getprop("/environment/wind-speed-kt") or 0;