Fix #941: add copyright to new package files.

- also reworded the boilerplate a bit.
This commit is contained in:
Todd Gamblin 2016-05-12 10:30:13 -07:00
parent d9cc1f85a5
commit 5e13bba068

View file

@ -1,3 +1,4 @@
_copyright = """\
############################################################################## ##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC. # Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory. # Produced at the Lawrence Livermore National Laboratory.
@ -22,6 +23,7 @@
# License along with this program; if not, write to the Free Software # License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
############################################################################## ##############################################################################
"""
import string import string
import os import os
import hashlib import hashlib
@ -47,22 +49,22 @@
description = "Create a new package file from an archive URL" description = "Create a new package file from an archive URL"
package_template = string.Template("""\ package_template = string.Template(
# FIXME: _copyright + """
# This is a template package file for Spack. We've conveniently
# put "FIXME" labels next to all the things you'll want to change.
# #
# Once you've edited all the FIXME's, delete this whole message, # This is a template package file for Spack. We've put "FIXME"
# save this file, and test out your package like this: # next to all the things you'll want to change. Once you've handled
# them, you can save this file and test your package like this:
# #
# spack install ${name} # spack install ${name}
# #
# You can always get back here to change things with: # You can edit this file again by typing:
# #
# spack edit ${name} # spack edit ${name}
# #
# See the spack documentation for more information on building # See the Spack documentation for more information on packaging.
# packages. # If you submit this package back to Spack as a pull request,
# please first remove this boilerplate and all FIXME comments.
# #
from spack import * from spack import *