I would like to convert the following ruby/rake code to Clojure:
Dir.chdir ENV["CLOJURE_HOME"] do
system "git svn rebase"
system "ant jar"
end
Since Java does not have the notion of a current directory, one way to
go about this would be to modify clojure.contrib.shell-out/sh as
follows:
(1) add a var *current-dir*
(2) modify sh to use *current-dir* if it is set
(3) create a macro to swap the binding for *current-dir*
Chouser, would it be ok for me to make this change? What would you
suggest the macro be named? with-dir? chdir?
I would also welcome other approaches from folks who have been doing
command-line stuff in Clojure.
Cheers,
Stuart
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---