From a738d4fd840e088d9a46dea2429c35ba8100df9d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 28 Aug 2013 00:15:47 +0000 Subject: add license/copyright headers/footers to all files All files we distribute in the tarball need to have a copyright/license specified for Savannah. We don't need the example state file anymore. --- Rakefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 27d7960..dd4f8b2 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +# Copyright (C) 2013, Eric Wong and all contributors +# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) load "./GIT-VERSION-GEN" manifest = "Manifest.txt" gitidx = File.stat(".git/index") rescue nil @@ -31,12 +33,16 @@ if ! File.exist?(manifest) || File.stat(manifest).mtime < gitidx.mtime time = Time.at(tagger.split(/ /)[-2].to_i).utc date = time.strftime("%Y-%m-%d") - fp.write("=== #{version} / #{date}\n\n#{subject}\n\n#{body}") + fp.write("# #{version} / #{date}\n\n#{subject}\n\n#{body}") end fp.flush if fp.size <= 5 fp.puts "Unreleased" end + + fp.write("\n# COPYRIGHT\n") + fp.puts "Copyright (C) 2013, Eric Wong and all contributors" + fp.puts "License: GPLv3 or later (http://www.gnu.org/licenses/gpl-3.0.txt)" end end @@ -96,7 +102,7 @@ base = "dtas-#{h.version}" task tarball: "pkg/#{base}" do Dir.chdir("pkg") do tgz = "#{base}.tar.gz" - tmp = "#{tmp}.#$$" + tmp = "#{tgz}.#$$" sh "tar cf - #{base} | gzip -9 > #{tmp}" File.rename(tmp, tgz) end -- cgit v1.2.3-24-ge0c7