diff options
author | 2009-09-09 15:58:28 +0200 | |
---|---|---|
committer | 2009-09-09 15:58:28 +0200 | |
commit | 3b674a141fa90b836485fc985e439e7157488646 (patch) | |
tree | 2f9e55c8a43a7853484cf2383e30ba26c6b3fcd7 /eselect-ruby | |
parent | ...also for the gem symlink (diff) | |
download | ruby-scripts-3b674a141fa90b836485fc985e439e7157488646.tar.gz ruby-scripts-3b674a141fa90b836485fc985e439e7157488646.tar.bz2 ruby-scripts-3b674a141fa90b836485fc985e439e7157488646.zip |
Removing the b0rked mkrelease.rb
Diffstat (limited to 'eselect-ruby')
-rw-r--r-- | eselect-ruby/mkrelease.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/eselect-ruby/mkrelease.rb b/eselect-ruby/mkrelease.rb deleted file mode 100644 index 255f946..0000000 --- a/eselect-ruby/mkrelease.rb +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env ruby - -require 'git' -require 'tmpdir' -require 'date' -require 'fileutils' - -REPOS_URI="git://git.a3li.info/gentoo-misc.git" -START_TIME=Time.now.to_i - -unless ARGV[0] - puts "I need a file!" - exit 1 -end - -puts "Cloning Repository..." -git = Git.clone(REPOS_URI, "gentoo-misc-#{START_TIME}", :path => Dir.tmpdir) - -puts "Setting VERSION..." -f = File.open(File.join(git.dir.path, 'ruby-eselect/ruby.eselect'), 'r') -g = File.open(ARGV[0], 'w') -f.each do |line| - g.puts line.gsub(/^VERSION="GIT"/, "VERSION=\"#{Date.today.strftime('%Y%m%d')}\"") -end -f.close -g.close - -FileUtils.remove_dir(git.dir.path) |