about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-02-21 21:44:52 +0000
committerEric Wong <e@yhbt.net>2020-02-21 21:46:06 +0000
commit75eb508d64df7448feb123d7b6897815f12b9cd4 (patch)
tree738ece8f8ceaa232b8d15cb8ce24936910a0a4d7
parentc78d5749e1011e63537173ef757a1104afc51dfe (diff)
downloadlocal-openid-75eb508d64df7448feb123d7b6897815f12b9cd4.tar.gz
remove Rakefile and update GNUmakefile
Rakefile is not needed anymore since both RubyForge and
Freshmeat are defunct.  Update the GNUmakefile while we're
at it.
-rw-r--r--GNUmakefile7
-rw-r--r--Rakefile70
2 files changed, 1 insertions, 76 deletions
diff --git a/GNUmakefile b/GNUmakefile
index ea356c8..df0c2bd 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,9 +1,4 @@
 all::
-RSYNC_DEST := yhbt.net:/srv/bogomips/local-openid
-rfproject := qrp
+RSYNC_DEST := yhbt.net:/srv/yhbt/local-openid
 rfpackage := local-openid
 include pkg.mk
-ifneq ($(VERSION),)
-release::
-        $(RAKE) publish_news VERSION=$(VERSION)
-endif
diff --git a/Rakefile b/Rakefile
deleted file mode 100644
index f4dbc4b..0000000
--- a/Rakefile
+++ /dev/null
@@ -1,70 +0,0 @@
-# -*- encoding: binary -*-
-require 'olddoc'
-cgit_url = Olddoc.config['cgit_url']
-git_url = Olddoc.config['git_url']
-
-desc "post news article to rubyforge"
-task :publish_news do
-  require 'rubyforge'
-  spec = Gem::Specification.load('local-openid.gemspec')
-  tmp = Tempfile.new('rf-news')
-  _, subject, body = `git cat-file tag v#{spec.version}`.split(/\n\n/, 3)
-  tmp.puts subject
-  tmp.puts
-  tmp.puts spec.description.strip
-  tmp.puts ""
-  tmp.puts "* #{spec.homepage}"
-  tmp.puts "* #{spec.email}"
-  tmp.puts "* #{git_url}"
-  tmp.print "\nChanges:\n\n"
-  tmp.puts body
-  tmp.flush
-  system(ENV["VISUAL"], tmp.path) or abort "#{ENV["VISUAL"]} failed: #$?"
-  msg = File.readlines(tmp.path)
-  subject = msg.shift
-  blank = msg.shift
-  blank == "\n" or abort "no newline after subject!"
-  subject.strip!
-  body = msg.join("").strip!
-
-  rf = RubyForge.new.configure
-  rf.login
-  rf.post_news('qrp', subject, body)
-end
-
-desc "post to FM"
-task :fm_update do
-  require 'tempfile'
-  require 'net/http'
-  require 'net/netrc'
-  require 'json'
-  version = ENV['VERSION'] or abort "VERSION= needed"
-  uri = URI.parse('https://freecode.com/projects/local-openid/releases.json')
-  rc = Net::Netrc.locate('local-openid-fm') or abort "~/.netrc not found"
-  api_token = rc.password
-  _, subject, body = `git cat-file tag v#{version}`.split(/\n\n/, 3)
-  tmp = Tempfile.new('fm-changelog')
-  tmp.puts subject
-  tmp.puts
-  tmp.puts body
-  tmp.flush
-  system(ENV["VISUAL"], tmp.path) or abort "#{ENV["VISUAL"]} failed: #$?"
-  changelog = File.read(tmp.path).strip
-
-  req = {
-    "auth_code" => api_token,
-    "release" => {
-      "tag_list" => "Stable",
-      "version" => version,
-      "changelog" => changelog,
-    },
-  }.to_json
-
-  if ! changelog.strip.empty? && version =~ %r{\A[\d\.]+\d+\z}
-    Net::HTTP.start(uri.host, uri.port, :use_ssl => true) do |http|
-      p http.post(uri.path, req, {'Content-Type'=>'application/json'})
-    end
-  else
-    warn "not updating freshmeat for v#{version}"
-  end
-end