diff options
author | Jamis Buck <jamis@37signals.com> | 2008-05-30 13:30:03 -0600 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2008-05-30 13:30:03 -0600 |
commit | 5a2e6ddd6f86f62abc3acd34ac453f1aec1fcc71 (patch) | |
tree | 56f59ef5ec9c82f47f4be109a368a4cf9b45c4ca | |
parent | 9be2cc70eb12164021c8239552f3a81fdb367da5 (diff) | |
download | third_party-sqlite3-ruby-5a2e6ddd6f86f62abc3acd34ac453f1aec1fcc71.tar.gz third_party-sqlite3-ruby-5a2e6ddd6f86f62abc3acd34ac453f1aec1fcc71.tar.xz third_party-sqlite3-ruby-5a2e6ddd6f86f62abc3acd34ac453f1aec1fcc71.zip |
don't need the svn-to-changelog converter anymore, now that we're on git
-rw-r--r-- | util/svn2cl.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/util/svn2cl.rb b/util/svn2cl.rb deleted file mode 100644 index fe5216e..0000000 --- a/util/svn2cl.rb +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby - -require 'time' - -def wrap( text, column, indent="" ) - wrapped = "" - while text.length > column - break_at = text.rindex( /[-\s]/, column ) || column - line = text[0,break_at+1].strip - text = text[break_at+1..-1].strip - wrapped << indent << line << "\n" - end - wrapped << indent << text -end - -output = `svn log`.split( /^-----*\n/ ) - -output[1..-2].each do |change| - lines = change.split(/\n/) - revision, user, stamp, size = lines.shift.split( /\|/ ) - lines.shift - msg = lines.join(' ') - date, time = stamp.match( /(\d\d\d\d-\d\d-\d\d) (\d\d:\d\d):\d\d/ )[1,2] - - puts "#{date} #{time} #{user.strip}" - puts - puts "\t* #{wrap(msg,60,"\t ").strip}" - puts -end |