Loading operational +21 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,27 @@ #+STARTUP: content * current :entry: ** ** 2016-06-30 make "lein new python bar" work, without --to-dir . ** DONE 2016-06-30 make "lein new python bar" work, without --to-dir . chmod -R +x utils/ - this is not run on project root dir. I see there is a "shell/with-sh-dir *dir*", check what is *dir*. search: leiningen new *dir* target dir leiningen.new.templates reference https://github.com/technomancy/leiningen/blob/master/src/leiningen/new/templates.clj it's either pwd or ->files file's path. seems it's not the target project dir. - check how --to-dir work. https://github.com/technomancy/leiningen/blob/master/src/leiningen/new.clj I think it could be nil when --to-dir is not used. yes. it's null when user doesn't use --to-dir option. ** 2016-06-30 update it for use with default debian config. (non-yy env) - update nginx config file - add support for systemd Loading project.clj +1 −1 Original line number Diff line number Diff line (defproject python/lein-template "0.8.1" (defproject python/lein-template "0.8.2" :description "lein template for a python project" :repositories [["snapshots" {:url "http://devserv.game.yy.com/nexus/content/repositories/snapshots" Loading src/leiningen/new/python.clj +7 −6 Original line number Diff line number Diff line Loading @@ -78,9 +78,10 @@ ;; using input-stream here because the result of rendering ;; binary file is undefined even when data is empty hashmap. plain-files))) (shell/with-sh-dir *dir* (let [project-dir (or *dir* name)] (shell/with-sh-dir project-dir (doseq [cmd (map (fn [cmd] (string/split cmd #" ")) post-run-commands)] (sh-output (apply shell/sh cmd)))) ;; run git init if no .git found. (if (not (.exists (io/file *dir* ".git"))) (sh-output (shell/sh "git" "init" :dir *dir*))))) (if (not (.exists (io/file project-dir ".git"))) (sh-output (shell/sh "git" "init" :dir project-dir)))))) Loading
operational +21 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,27 @@ #+STARTUP: content * current :entry: ** ** 2016-06-30 make "lein new python bar" work, without --to-dir . ** DONE 2016-06-30 make "lein new python bar" work, without --to-dir . chmod -R +x utils/ - this is not run on project root dir. I see there is a "shell/with-sh-dir *dir*", check what is *dir*. search: leiningen new *dir* target dir leiningen.new.templates reference https://github.com/technomancy/leiningen/blob/master/src/leiningen/new/templates.clj it's either pwd or ->files file's path. seems it's not the target project dir. - check how --to-dir work. https://github.com/technomancy/leiningen/blob/master/src/leiningen/new.clj I think it could be nil when --to-dir is not used. yes. it's null when user doesn't use --to-dir option. ** 2016-06-30 update it for use with default debian config. (non-yy env) - update nginx config file - add support for systemd Loading
project.clj +1 −1 Original line number Diff line number Diff line (defproject python/lein-template "0.8.1" (defproject python/lein-template "0.8.2" :description "lein template for a python project" :repositories [["snapshots" {:url "http://devserv.game.yy.com/nexus/content/repositories/snapshots" Loading
src/leiningen/new/python.clj +7 −6 Original line number Diff line number Diff line Loading @@ -78,9 +78,10 @@ ;; using input-stream here because the result of rendering ;; binary file is undefined even when data is empty hashmap. plain-files))) (shell/with-sh-dir *dir* (let [project-dir (or *dir* name)] (shell/with-sh-dir project-dir (doseq [cmd (map (fn [cmd] (string/split cmd #" ")) post-run-commands)] (sh-output (apply shell/sh cmd)))) ;; run git init if no .git found. (if (not (.exists (io/file *dir* ".git"))) (sh-output (shell/sh "git" "init" :dir *dir*))))) (if (not (.exists (io/file project-dir ".git"))) (sh-output (shell/sh "git" "init" :dir project-dir))))))