diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-08-28 00:15:47 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-08-28 00:24:27 +0000 |
commit | a738d4fd840e088d9a46dea2429c35ba8100df9d (patch) | |
tree | 559fdb56ce69d480ce50c3fbd89345ab78cc984d /Rakefile | |
parent | cd6065bcd94397fa23dd29621196e71f2183dc01 (diff) | |
download | dtas-a738d4fd840e088d9a46dea2429c35ba8100df9d.tar.gz |
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.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,5 @@ +# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> 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 <normalperson@yhbt.net> 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 |