Permalink
Browse files

pre-commit

  • Loading branch information...
1 parent d07ecc1 commit 5a95ad5fe559092dbaa76b0a62de9a2b8ce267f2 @cho45 committed Aug 6, 2009
Showing with 9 additions and 0 deletions.
  1. +9 −0 pre-commit
View
@@ -0,0 +1,9 @@
+#!/usr/bin/env ruby
+
+require "pathname"
+
+base = Pathname.new("jsdeferred.js").mtime
+unless Pathname.glob("jsdeferred.*.js").all? {|f| f.mtime > base }
+ system("rake", "create")
+ exit 1
+end

0 comments on commit 5a95ad5

Please sign in to comment.