parent
f8f568bf96
commit
952076e822
2 changed files with 2 additions and 1 deletions
1
bin/lein
1
bin/lein
|
@ -189,6 +189,7 @@ export JVM_OPTS="${JVM_OPTS:-"$JAVA_OPTS"}"
|
||||||
# you need to remove the self-install and upgrade functionality or see lein-pkg.
|
# you need to remove the self-install and upgrade functionality or see lein-pkg.
|
||||||
if [ "$1" = "self-install" ]; then
|
if [ "$1" = "self-install" ]; then
|
||||||
if [ -r "$BIN_DIR/../src/leiningen/version.clj" ]; then
|
if [ -r "$BIN_DIR/../src/leiningen/version.clj" ]; then
|
||||||
|
echo "Running self-install from a checkout is not supported."
|
||||||
echo "See CONTRIBUTING.md for SNAPSHOT-specific build instructions."
|
echo "See CONTRIBUTING.md for SNAPSHOT-specific build instructions."
|
||||||
exit 1
|
exit 1
|
||||||
elif [ -r "$LEIN_JAR" ]; then
|
elif [ -r "$LEIN_JAR" ]; then
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
[clojure.data.xml :as xml]))
|
[clojure.data.xml :as xml]))
|
||||||
|
|
||||||
(defn- relativize [project]
|
(defn- relativize [project]
|
||||||
(let [root (str (:root project) "/")]
|
(let [root (str (:root project) (System/getProperty "file.separator"))]
|
||||||
(reduce #(update-in %1 [%2]
|
(reduce #(update-in %1 [%2]
|
||||||
(fn [xs]
|
(fn [xs]
|
||||||
(if (seq? xs)
|
(if (seq? xs)
|
||||||
|
|
Loading…
Reference in a new issue