Update copyright headers in generated kernels.
[alexxy/gromacs.git] / src / gromacs / gmxlib / nonbonded / nb_kernel_c / make_nb_kernel_c.py
index 44f22ceeebea6e0e85267fbc2a8b78f4c3945570..41cfb1e620c870d6a0f67faeec3a9eb0b9380b5a 100755 (executable)
@@ -3,9 +3,9 @@
 # This file is part of the GROMACS molecular simulation package.
 #
 # Copyright (c) 2012,2013, by the GROMACS development team, led by
-# David van der Spoel, Berk Hess, Erik Lindahl, and including many
-# others, as listed in the AUTHORS file in the top-level source
-# directory and at http://www.gromacs.org.
+# Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
+# and including many others, as listed in the AUTHORS file in the
+# top-level source directory and at http://www.gromacs.org.
 #
 # GROMACS is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public License
@@ -14,7 +14,7 @@
 #
 # GROMACS 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
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # Lesser General Public License for more details.
 #
 # You should have received a copy of the GNU Lesser General Public
 # official version at http://www.gromacs.org.
 #
 # To help us fund GROMACS development, we humbly ask that you cite
-# the research papers on the package. Check out http://www.gromacs.org
+# the research papers on the package. Check out http://www.gromacs.org.
 
 import sys
 import os
-sys.path.append ( "../preprocessor" )
+sys.path.append("../preprocessor")
+sys.path.append("../../../../../admin")
 from gmxpreprocess import gmxpreprocess
+from copyright import create_copyright_header
 
 # "The happiest programs are programs that write other programs."
 #
@@ -89,44 +91,11 @@ Arch       = 'c'
 # '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
@@ -172,7 +141,7 @@ ModifierList = {
 GeometryNameList = [
     [ 'Particle' , 'Particle' ],
     [ 'Water3'   , 'Particle' ],
-    [ 'Water3'   , 'Water3'   ],     
+    [ 'Water3'   , 'Water3'   ],
     [ 'Water4'   , 'Particle' ],
     [ 'Water4'   , 'Water4'   ]
 ]