summaryrefslogtreecommitdiffstats
path: root/document_keybindings.rb
diff options
context:
space:
mode:
authorBrett Terpstra2012-03-30 17:17:15 -0500
committerBrett Terpstra2012-03-30 17:17:15 -0500
commita1a8613d3b8d80318af48327c089c661720bc6ba (patch)
tree33dddbe77e7b6e283618bfec27c6fd7ea18a4b2a /document_keybindings.rb
parent20fa6a05695e93ed06c93954c0be08f0c8aaa521 (diff)
downloadKeyBindings-a1a8613d3b8d80318af48327c089c661720bc6ba.tar.bz2
Added 'updated' date to documentation generator
Diffstat (limited to 'document_keybindings.rb')
-rwxr-xr-xdocument_keybindings.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/document_keybindings.rb b/document_keybindings.rb
index 8c6e8e6..a4edd41 100755
--- a/document_keybindings.rb
+++ b/document_keybindings.rb
@@ -7,6 +7,8 @@ infile = File.new('DefaultKeyBinding.dict','r')
input = infile.read
infile.close
+date = Time.now.strftime('%m/%d/%Y')
+
output = ''
style =<<STYLE
<style>
@@ -23,7 +25,7 @@ td:last-child { font-weight:normal;width:auto }
STYLE
intro =<<INTRO
-DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) for Mac OS X, created by [Brett Terpstra][] and based heavily on work done by [Lri][lrikeys]. See Lri's [gists][lrigists] and [website][lriweb] for more coding madness.
+DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) for Mac OS X, created by [Brett Terpstra][] and based heavily on work done by [Lri][lrikeys]. See Lri's [gists][lrigists] and [website][lriweb] for more coding madness. Documentation last updated #{date}.
[lrikeys]: http://www.cs.helsinki.fi/u/lranta/keybindings/
[lriweb]: http://www.cs.helsinki.fi/u/lranta/