Permalink
Browse files

Use a local tmpdir to avoid conflicts.

  • Loading branch information...
emezeske committed Dec 31, 2011
1 parent 39eaaf8 commit 3145d6247fde217095fb16f83a2135afd080f893
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/cljsbuild/core.clj
View
@@ -6,7 +6,7 @@
[fs :as fs]
[cljs.closure :as cljsc]))
-(def tmpdir "/tmp/clojurescript-output")
+(def tmpdir ".clojurescript-output")
(defn- filter-cljs [files types]
(let [ext #(last (string/split % #"\."))]
@@ -30,8 +30,6 @@
(defn- compile-cljs [source-dir output-file optimizations pretty?]
(print (str "Compiling " output-file " from " source-dir "..."))
(flush)
- (when (fs/exists? tmpdir)
- (fs/deltree tmpdir))
(fs/mkdirs (fs/dirname output-file))
(let [started-at (. System (nanoTime))]
(try

0 comments on commit 3145d62

Please sign in to comment.