diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-05-12 10:30:13 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-05-12 10:30:13 -0700 |
commit | 5e13bba068244db9a71c2b4fc1bc52b85fcb5225 (patch) | |
tree | c82d747cc0cb1f7891067c47291e888c8543372a /lib | |
parent | d9cc1f85a55f00573e6dc0f2df3caf112b0d84e6 (diff) | |
download | spack-5e13bba068244db9a71c2b4fc1bc52b85fcb5225.tar.gz spack-5e13bba068244db9a71c2b4fc1bc52b85fcb5225.tar.bz2 spack-5e13bba068244db9a71c2b4fc1bc52b85fcb5225.tar.xz spack-5e13bba068244db9a71c2b4fc1bc52b85fcb5225.zip |
Fix #941: add copyright to new package files.
- also reworded the boilerplate a bit.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/create.py | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/lib/spack/spack/cmd/create.py b/lib/spack/spack/cmd/create.py index 7071af2686..41bfa741f6 100644 --- a/lib/spack/spack/cmd/create.py +++ b/lib/spack/spack/cmd/create.py @@ -1,3 +1,4 @@ +_copyright = """\ ############################################################################## # Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. @@ -22,6 +23,7 @@ # License along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ############################################################################## +""" import string import os import hashlib @@ -47,22 +49,22 @@ from spack.stage import Stage description = "Create a new package file from an archive URL" -package_template = string.Template("""\ -# FIXME: -# This is a template package file for Spack. We've conveniently -# put "FIXME" labels next to all the things you'll want to change. +package_template = string.Template( + _copyright + """ # -# Once you've edited all the FIXME's, delete this whole message, -# save this file, and test out your package like this: +# This is a template package file for Spack. We've put "FIXME" +# 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} # -# You can always get back here to change things with: +# You can edit this file again by typing: # # spack edit ${name} # -# See the spack documentation for more information on building -# packages. +# See the Spack documentation for more information on packaging. +# If you submit this package back to Spack as a pull request, +# please first remove this boilerplate and all FIXME comments. # from spack import * |