From 9442abbb49af15cfb3ad3bae4f7d71c6a8555a32 Mon Sep 17 00:00:00 2001
From: Daniel van der Schuur <schuur@astron.nl>
Date: Fri, 9 Oct 2015 13:32:23 +0000
Subject: [PATCH] -Added ASTRON header.

---
 tools/oneclick/components/component.py | 32 +++++++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)

diff --git a/tools/oneclick/components/component.py b/tools/oneclick/components/component.py
index c222d998cb..3006b3aecb 100644
--- a/tools/oneclick/components/component.py
+++ b/tools/oneclick/components/component.py
@@ -2,6 +2,36 @@ import multiprocessing as mp
 import time
 import common as cm
 
+###############################################################################
+# Constants
+###############################################################################
+ASTRON_HEADER = """
+-------------------------------------------------------------------------------
+--
+-- Copyright (C) 2015
+-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
+-- JIVE (Joint Institute for VLBI in Europe) <http://www.jive.nl/>
+-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
+--
+-- This program 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.
+--
+-- This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
+--
+-------------------------------------------------------------------------------
+
+-- This file is generated by component.py (RadioHDL/OneClick)
+
+"""
+
 ###############################################################################
 # Base classes
 ###############################################################################
@@ -153,7 +183,7 @@ class Component(mp.Process):
     def generate(self, target_file=None):
         if self.components != []:
             target_file = open(self.file_name, "w")
-            target_file.write('ASTRON HEADER\n')
+            target_file.write(ASTRON_HEADER)
             target_file.write('INCLUDED LIBRARIES\n')
             target_file.write('ENTITY DECLARATION\n')
             target_file.write('ARCHITECTURE str OF %s IS\n' %self.name)
-- 
GitLab