Update copyright headers in generated kernels.
[alexxy/gromacs.git] / src / gromacs / gmxlib / nonbonded / nb_kernel_avx_128_fma_double / make_nb_kernel_avx_128_fma_double.py
index 3b435554ba2ada646c4b290b8dc9ae0c4f781df5..4a2216ffb98d555b2db535a805b05108ac1bb2b1 100755 (executable)
@@ -35,7 +35,9 @@
 
 import sys
 import os
-sys.path.append ( "../preprocessor" )
+sys.path.append("../preprocessor")
+sys.path.append("../../../../../admin")
+from copyright import create_copyright_header
 from gmxpreprocess import gmxpreprocess
 
 # "The happiest programs are programs that write other programs."
@@ -89,44 +91,11 @@ Arch       = 'avx_128_fma_double'
 # 'cutoff' means the interaction is set to 0.0 outside the cutoff
 #
 
-FileHeader = \
-'/*\n' \
-' * This file is part of the GROMACS molecular simulation package.\n' \
-' *\n' \
-' * Copyright (c) 2012,2013, by the GROMACS development team, led by\n' \
-' * David van der Spoel, Berk Hess, Erik Lindahl, and including many\n' \
-' * others, as listed in the AUTHORS file in the top-level source\n' \
-' * directory and at http://www.gromacs.org.\n' \
-' *\n' \
-' * GROMACS is free software; you can redistribute it and/or\n' \
-' * modify it under the terms of the GNU Lesser General Public License\n' \
-' * as published by the Free Software Foundation; either version 2.1\n' \
-' * of the License, or (at your option) any later version.\n' \
-' *\n' \
-' * GROMACS is distributed in the hope that it will be useful,\n' \
-' * but WITHOUT ANY WARRANTY; without even the implied warranty of\n' \
-' * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n' \
-' * Lesser General Public License for more details.\n' \
-' *\n' \
-' * You should have received a copy of the GNU Lesser General Public\n' \
-' * License along with GROMACS; if not, see\n' \
-' * http://www.gnu.org/licenses, or write to the Free Software Foundation,\n' \
-' * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.\n' \
-' *\n' \
-' * If you want to redistribute modifications to GROMACS, please\n' \
-' * consider that scientific software is very special. Version\n' \
-' * control is crucial - bugs must be traceable. We will be happy to\n' \
-' * consider code for inclusion in the official distribution, but\n' \
-' * derived work must not be called official GROMACS. Details are found\n' \
-' * in the README & COPYING files - if they are missing, get the\n' \
-' * official version at http://www.gromacs.org.\n' \
-' *\n' \
-' * To help us fund GROMACS development, we humbly ask that you cite\n' \
-' * the research papers on the package. Check out http://www.gromacs.org.\n' \
-' */\n' \
-'/*\n' \
-' * Note: this file was generated by the GROMACS '+Arch+' kernel generator.\n' \
-' */\n'
+FileHeader = create_copyright_header('2012,2013')
+FileHeader += """/*
+ * Note: this file was generated by the GROMACS """+Arch+""" kernel generator.
+ */
+"""
 
 ###############################################
 # ELECTROSTATICS