Skip to content

Commit

Permalink
trying to write a utility to help me bump version numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Yoo committed Nov 21, 2010
1 parent 7a75840 commit f40bd76
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions js-vm/bump-to.rkt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#lang racket


(define files-to-change
(find-files (lambda (p)
(and (file-exists? p)
(bytes=? (filename-extension p)
#"rkt")))))

(for ([f files-to-change])
(let ([b (file->bytes f)])
(call-with-output-file f
(lambda (op)
(write-bytes b op))
#:exists replace)))

0 comments on commit f40bd76

Please sign in to comment.