Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 581 Bytes
@echo off
setLocal EnableDelayedExpansion
if "%CLOJURESCRIPT_HOME%" == "" set CLOJURESCRIPT_HOME=%~dp0..\
set CLASSPATH=%CLOJURESCRIPT_HOME%src\main\clojure;%CLOJURESCRIPT_HOME%src\main\cljs;%CLOJURESCRIPT_HOME%src\test\cljs
for /R "%CLOJURESCRIPT_HOME%lib" %%a in (*.jar) do (
set CLASSPATH=!CLASSPATH!;%%a
)
set CLASSPATH=!CLASSPATH!
if (%1) == () (
echo Usage: "cljsc <file-or-dir> > out.js"
echo "cljsc <file-or-dir> {:optimiztions :advanced} > out.js"
) else (
java -server -cp "%CLASSPATH%" clojure.main "%CLOJURESCRIPT_HOME%\bin\cljsc.clj" %*
)
Something went wrong with that request. Please try again.