[SCM] leiningen packaging branch, upstream, updated. 691804925b14beb54c460c65b7a302839fdd440b

Wolodja Wentland babilen-guest at alioth.debian.org
Sat Jul 30 15:09:00 UTC 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "leiningen packaging".

The branch, upstream has been updated
       via  691804925b14beb54c460c65b7a302839fdd440b (commit)
      from  881120a93a593ae747193e7cb4e5851e3f803416 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 .gitattributes                                    |    2 +
 .gitignore                                        |   12 ++
 bin/lein.bat                                      |  196 +++++++++++++++++++++
 resources/leiningen.png                           |  Bin 0 -> 73583 bytes
 resources/script-template.bat                     |   13 ++
 test_projects/dev-deps-only/.gitignore            |    4 +
 test_projects/native/.gitignore                   |    7 +
 test_projects/sample/checkouts/sample2/.gitignore |    4 +
 test_projects/tricky-name/.gitignore              |    4 +
 9 files changed, 242 insertions(+), 0 deletions(-)

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..27cc220
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+#disable autocrlf for all .bat files since they already have CRLF in raw format
+*.bat -crlf
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..910e372
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,12 @@
+test_projects/*/lib
+test_projects/*/classes/
+test_projects/*/nomnomnom*.jar
+test_projects/sample/pom.xml
+classes/
+lib/
+leiningen*.jar
+lein-swank/lein-swank*.jar
+autodoc/
+bin/nom
+.lein-failures
+/lein.man
diff --git a/bin/lein.bat b/bin/lein.bat
new file mode 100644
index 0000000..d63b23c
--- /dev/null
+++ b/bin/lein.bat
@@ -0,0 +1,196 @@
+ at echo off
+
+set LEIN_VERSION=1.6.0
+
+setLocal EnableExtensions EnableDelayedExpansion
+
+if "%LEIN_VERSION:~-9%" == "-SNAPSHOT" (
+    set SNAPSHOT=YES
+) else (
+    set SNAPSHOT=NO
+)
+
+rem LEIN_JAR and LEIN_HOME variables can be set manually.
+
+if "x%LEIN_HOME%" == "x" set LEIN_HOME=%USERPROFILE%\.lein
+if "x%LEIN_JAR%" == "x" set LEIN_JAR="!LEIN_HOME!\self-installs\leiningen-!LEIN_VERSION!-standalone.jar"
+
+if "x%1" == "xself-install" goto SELF_INSTALL
+if "x%1" == "xupgrade"      goto NO_UPGRADE
+
+set ORIGINAL_PWD=%CD%
+rem If ORIGINAL_PWD ends with a backslash (such as C:\),
+rem we need to escape it with a second backslash.
+if "%ORIGINAL_PWD:~-1%x" == "\x" set "ORIGINAL_PWD=%ORIGINAL_PWD%\"
+
+call :FIND_DIR_CONTAINING_UPWARDS project.clj
+if "%DIR_CONTAINING%" neq "" cd "%DIR_CONTAINING%"
+
+set LEIN_PLUGINS="
+for %%j in (".\lib\dev\*.jar") do (
+    set LEIN_PLUGINS=!LEIN_PLUGINS!;%%~fj
+)
+set LEIN_PLUGINS=!LEIN_PLUGINS!"
+
+set LEIN_USER_PLUGINS="
+for %%j in ("%LEIN_HOME%\plugins\*.jar") do (
+    set LEIN_USER_PLUGINS=!LEIN_USER_PLUGINS!;%%~fj
+)
+set LEIN_USER_PLUGINS=!LEIN_USER_PLUGINS!"
+
+set CLASSPATH="%CLASSPATH%";%LEIN_USER_PLUGINS%;%LEIN_PLUGINS%;test;src
+
+rem Apply context specific CLASSPATH entries
+set CONTEXT_CP=""
+if exist ".classpath" set /P CONTEXT_CP=<.classpath
+if NOT "%CONTEXT_CP%"=="" set CLASSPATH="%CONTEXT_CP%";%CLASSPATH%
+
+if exist "%~f0\..\..\src\leiningen\core.clj" (
+    rem Running from source checkout.
+    call :SET_LEIN_ROOT "%~f0\..\.."
+
+    set LEIN_LIBS="
+    for %%j in ("!LEIN_ROOT!\lib\*") do set LEIN_LIBS=!LEIN_LIBS!;%%~fj
+    set LEIN_LIBS=!LEIN_LIBS!"
+
+    if "x!LEIN_LIBS!" == "x" if not exist %LEIN_JAR% goto NO_DEPENDENCIES
+
+    set CLASSPATH=%CLASSPATH%;!LEIN_LIBS!;"!LEIN_ROOT!\src";"!LEIN_ROOT!\resources";%LEIN_JAR%
+) else (
+    rem Not running from a checkout.
+    if not exist %LEIN_JAR% goto NO_LEIN_JAR
+    set CLASSPATH=%CLASSPATH%;%LEIN_JAR%
+)
+
+if not "x%DEBUG%" == "x" echo CLASSPATH=%CLASSPATH%
+rem ##################################################
+
+if not "x%INSIDE_EMACS%" == "x" goto SKIP_JLINE
+if "x%1" == "xrepl"             goto SET_JLINE
+if "x%1" == "xinteractive"      goto SET_JLINE
+if "x%1" == "xint"              goto SET_JLINE
+goto :SKIP_JLINE
+
+:SET_JLINE
+set JLINE=jline.ConsoleRunner
+:SKIP_JLINE
+
+if "x%JAVA_CMD%" == "x" set JAVA_CMD="java"
+if "x%JVM_OPTS%" == "x" set JVM_OPTS=%JAVA_OPTS%
+set CLOJURE_JAR=%USERPROFILE%\.m2\repository\org\clojure\clojure\1.2.1\clojure-1.2.1.jar
+goto RUN
+
+
+:NO_LEIN_JAR
+echo.
+echo %LEIN_JAR% can not be found.
+echo You can try running "lein self-install"
+echo or change LEIN_JAR environment variable
+echo or edit lein.bat to set appropriate LEIN_JAR path.
+echo.
+goto EOF
+
+:NO_DEPENDENCIES
+echo.
+echo Leiningen is missing its dependencies.
+echo Please see "Building" in the README.
+echo.
+goto EOF
+
+:SELF_INSTALL
+if exist %LEIN_JAR% (
+    echo %LEIN_JAR% already exists. Delete and retry.
+    goto EOF
+)
+for %%f in (%LEIN_JAR%) do set LEIN_INSTALL_DIR="%%~dpf"
+if not exist %LEIN_INSTALL_DIR% mkdir %LEIN_INSTALL_DIR%
+
+echo Downloading Leiningen now...
+
+set HTTP_CLIENT=wget --no-check-certificate -O
+wget>nul 2>&1
+if ERRORLEVEL 9009 (
+    curl>nul 2>&1
+    if ERRORLEVEL 9009 goto NO_HTTP_CLIENT
+    set HTTP_CLIENT=curl --insecure -f -L -o
+)
+set LEIN_JAR_URL=https://github.com/downloads/technomancy/leiningen/leiningen-%LEIN_VERSION%-standalone.jar
+%HTTP_CLIENT% %LEIN_JAR% %LEIN_JAR_URL%
+if ERRORLEVEL 1 (
+    del %LEIN_JAR%>nul 2>&1
+    goto DOWNLOAD_FAILED
+)
+goto EOF
+
+:DOWNLOAD_FAILED
+echo.
+echo Failed to download %LEIN_JAR_URL%
+if %SNAPSHOT% == YES echo See README.md for SNAPSHOT build instructions.
+echo.
+goto EOF
+
+:NO_HTTP_CLIENT
+echo.
+echo ERROR: Wget/Curl not found. Make sure at least either of Wget and Curl is
+echo        installed and is in PATH. You can get them from URLs below:
+echo.
+echo Wget: "http://users.ugent.be/~bpuype/wget/"
+echo Curl: "http://curl.haxx.se/dlwiz/?type=bin&os=Win32&flav=-&ver=2000/XP"
+echo.
+goto EOF
+
+:NO_UPGRADE
+echo.
+echo Upgrade feature is not available on Windows. Please edit the value of
+echo variable LEIN_VERSION in file %~f0
+echo then run "lein self-install".
+echo.
+goto EOF
+
+
+:SET_LEIN_ROOT
+set LEIN_ROOT=%~f1
+goto EOF
+
+rem Find directory containing filename supplied in first argument
+rem looking in current directory, and looking up the parent
+rem chain until we find it, or run out
+rem returns result in %DIR_CONTAINING%
+rem empty string if we don't find it
+:FIND_DIR_CONTAINING_UPWARDS
+set DIR_CONTAINING=%CD%
+set LAST_DIR=
+
+:LOOK_AGAIN
+if "%DIR_CONTAINING%" == "%LAST_DIR%" (
+    rem didn't find it
+    set DIR_CONTAINING=
+    goto :EOF
+)
+
+if EXIST "%DIR_CONTAINING%\%1" (
+    rem found it - use result in DIR_CONTAINING
+    goto :EOF
+)
+
+set LAST_DIR=%DIR_CONTAINING%
+call :GET_PARENT_PATH "%DIR_CONTAINING%\.."
+set DIR_CONTAINING=%PARENT_PATH%
+goto :LOOK_AGAIN
+
+:GET_PARENT_PATH
+set PARENT_PATH=%~f1
+goto :EOF
+
+
+:RUN
+rem Need to disable delayed expansion because the %* variable
+rem may contain bangs (as in test!).
+setLocal DisableDelayedExpansion
+
+%JAVA_CMD% -client %JVM_OPTS% -Xbootclasspath/a:"%CLOJURE_JAR%" ^
+ -Dleiningen.original.pwd="%ORIGINAL_PWD%" ^
+ -cp %CLASSPATH% %JLINE% clojure.main -e "(use 'leiningen.core)(-main)" NUL %*
+goto EOF
+
+:EOF
diff --git a/resources/leiningen.png b/resources/leiningen.png
new file mode 100644
index 0000000..995b0c3
Binary files /dev/null and b/resources/leiningen.png differ
diff --git a/resources/script-template.bat b/resources/script-template.bat
new file mode 100644
index 0000000..5189912
--- /dev/null
+++ b/resources/script-template.bat
@@ -0,0 +1,13 @@
+ at echo off
+
+rem This script was automatically generated by Leiningen.
+
+setLocal
+
+if "x%%JVM_OPTS%%" == "x" set JVM_OPTS=%%JAVA_OPTS%%
+set CLASSPATH="%s"
+set MAIN="%s"
+set VERSION="%s"
+
+java -cp "%%CLASSPATH%%" %%JVM_OPTS%% -Dproject.version=%%VERSION%%^
+ clojure.main -e "(use '%%MAIN%%)(apply -main *command-line-args*)" NUL %%*
diff --git a/test_projects/dev-deps-only/.gitignore b/test_projects/dev-deps-only/.gitignore
new file mode 100644
index 0000000..6eae6a5
--- /dev/null
+++ b/test_projects/dev-deps-only/.gitignore
@@ -0,0 +1,4 @@
+pom.xml
+*jar
+lib
+classes
diff --git a/test_projects/native/.gitignore b/test_projects/native/.gitignore
new file mode 100644
index 0000000..69746c8
--- /dev/null
+++ b/test_projects/native/.gitignore
@@ -0,0 +1,7 @@
+pom.xml
+*jar
+/lib
+/native
+/classes
+.lein-failures
+.lein-deps-sum
diff --git a/test_projects/sample/checkouts/sample2/.gitignore b/test_projects/sample/checkouts/sample2/.gitignore
new file mode 100644
index 0000000..d9148e9
--- /dev/null
+++ b/test_projects/sample/checkouts/sample2/.gitignore
@@ -0,0 +1,4 @@
+pom.xml
+*jar
+lib
+classes
\ No newline at end of file
diff --git a/test_projects/tricky-name/.gitignore b/test_projects/tricky-name/.gitignore
new file mode 100644
index 0000000..6eae6a5
--- /dev/null
+++ b/test_projects/tricky-name/.gitignore
@@ -0,0 +1,4 @@
+pom.xml
+*jar
+lib
+classes


hooks/post-receive
-- 
leiningen packaging



More information about the pkg-java-commits mailing list