Skip to content

Commit 562df1c

Browse files
Remove GPL license and copyright from header of generated CO_OD.{c,h} files.
1 parent 821eedb commit 562df1c

File tree

1 file changed

+3
-47
lines changed

1 file changed

+3
-47
lines changed

‎libEDSsharp/CanOpenNodeExporter.cs‎

Lines changed: 3 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -314,57 +314,13 @@ protected string print_h_entry(ODentry od)
314314
return sb.ToString();
315315
}
316316

317-
private void addGPLheader(StreamWriter file)
317+
private void addHeader(StreamWriter file)
318318
{
319319
file.WriteLine(@"/*******************************************************************************
320320
321321
File - CO_OD.c/CO_OD.h
322322
CANopen Object Dictionary.
323323
324-
Copyright (C) 2004-2008 Janez Paternoster
325-
326-
License: GNU Lesser General Public License (LGPL).
327-
328-
<http://canopennode.sourceforge.net>
329-
330-
(For more information see <CO_SDO.h>.)
331-
332-
This file is part of CANopenNode, an open source CANopen Stack.
333-
Project home page is <https://github.com/CANopenNode/CANopenNode>.
334-
For more information on CANopen see <http://www.can-cia.org/>.
335-
336-
CANopenNode is free and open source software: you can redistribute
337-
it and/or modify it under the terms of the GNU General Public License
338-
as published by the Free Software Foundation, either version 2 of the
339-
License, or (at your option) any later version.
340-
341-
This program is distributed in the hope that it will be useful,
342-
but WITHOUT ANY WARRANTY; without even the implied warranty of
343-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
344-
GNU General Public License for more details.
345-
346-
You should have received a copy of the GNU General Public License
347-
along with this program. If not, see <http://www.gnu.org/licenses/>.
348-
349-
Following clarification and special exception to the GNU General Public
350-
License is included to the distribution terms of CANopenNode:
351-
352-
Linking this library statically or dynamically with other modules is
353-
making a combined work based on this library. Thus, the terms and
354-
conditions of the GNU General Public License cover the whole combination.
355-
356-
As a special exception, the copyright holders of this library give
357-
you permission to link this library with independent modules to
358-
produce an executable, regardless of the license terms of these
359-
independent modules, and to copy and distribute the resulting
360-
executable under terms of your choice, provided that you also meet,
361-
for each linked independent module, the terms and conditions of the
362-
license of that module. An independent module is a module which is
363-
not derived from or based on this library. If you modify this
364-
library, you may extend this exception to your version of the
365-
library, but you are not obliged to do so. If you do not wish
366-
to do so, delete this exception statement from your version.
367-
368324
This file was automatically generated with libedssharp Object");
369325

370326
file.Write(" Dictionary Editor v" + this.gitVersion);
@@ -382,7 +338,7 @@ private void export_h()
382338
StreamWriter file = new StreamWriter(folderpath + Path.DirectorySeparatorChar + "CO_OD.h");
383339

384340

385-
addGPLheader(file);
341+
addHeader(file);
386342

387343
file.WriteLine("#pragma once");
388344
file.WriteLine("");
@@ -775,7 +731,7 @@ private void export_c()
775731
{
776732
StreamWriter file = new StreamWriter(folderpath + Path.DirectorySeparatorChar + "CO_OD.c");
777733

778-
addGPLheader(file);
734+
addHeader(file);
779735

780736
file.WriteLine(@"#include ""CO_driver.h""
781737
#include ""CO_OD.h""

0 commit comments

Comments
 (0)