Skip to content

Commit

Permalink
authorship info for some of my scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Jul 24, 2010
1 parent 8be8df1 commit 81b594c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bin/ansi2html
Expand Up @@ -8,6 +8,8 @@
# -w : wraps the output in PRE tags
# -css : includes CSS style declaration
#
# Author: Mislav Marohnić <mislav.marohnic@gmail.com>
#
# Try it out:
# $ ruby -e '30.upto(37) {|n| puts "\e[#{n}mHi \e[1;#{n}mho\e[m" }' | ansi2html
#
Expand Down
2 changes: 2 additions & 0 deletions bin/brew-log
@@ -1,6 +1,8 @@
#!/usr/bin/env ruby -w
## See how specific formulas changed in the last `brew update`.
#
# Author: Mislav Marohnić <mislav.marohnic@gmail.com>
#
# Example:
#
# $ brew update
Expand Down
4 changes: 4 additions & 0 deletions bin/crlf
@@ -1,4 +1,8 @@
#!/usr/bin/env ruby
## Convert Windows to Unix line breaks
#
# Author: Mislav Marohnić <mislav.marohnic@gmail.com>

ARGV.each do |file|
next unless file =~ /\.\w{2,4}$/
text = File.read(file)
Expand Down
5 changes: 4 additions & 1 deletion bin/svn-authors
@@ -1,6 +1,9 @@
#!/usr/bin/env ruby
# Extracts authors from the SVN log given on STDIN
#
# Author: Mislav Marohnić <mislav.marohnic@gmail.com>

authors = Hash.new(0)
# extracts SVN authors from the log given on STDIN
authors[$1] += 1 if $_ =~ /^r\d+ \| (\S+)/ while gets

authors.to_a.
Expand Down

0 comments on commit 81b594c

Please sign in to comment.