summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Terpstra2012-03-30 17:17:15 -0500
committerBrett Terpstra2012-03-30 17:17:15 -0500
commita1a8613d3b8d80318af48327c089c661720bc6ba (patch)
tree33dddbe77e7b6e283618bfec27c6fd7ea18a4b2a
parent20fa6a05695e93ed06c93954c0be08f0c8aaa521 (diff)
downloadKeyBindings-a1a8613d3b8d80318af48327c089c661720bc6ba.tar.bz2
Added 'updated' date to documentation generator
-rwxr-xr-xdocument_keybindings.rb4
-rw-r--r--readme.md2
2 files changed, 4 insertions, 2 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/
diff --git a/readme.md b/readme.md
index 0a6f9df..723fe71 100644
--- a/readme.md
+++ b/readme.md
@@ -1,4 +1,4 @@
-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 03/30/2012.
[lrikeys]: http://www.cs.helsinki.fi/u/lranta/keybindings/
[lriweb]: http://www.cs.helsinki.fi/u/lranta/