Port of the Clojure CLI bash clojure install script to Clojure. Mirrors clojure/brew-install versions.
brew-install version: tags at https://github.com/clojure/brew-install/tags (or git ls-remote --tags --sort=-v:refname https://github.com/clojure/brew-install).curl -sL "https://raw.githubusercontent.com/clojure/brew-install/<CUR>/src/main/resources/clojure/install/clojure" -o cur.sh
curl -sL "https://raw.githubusercontent.com/clojure/brew-install/<NEW>/src/main/resources/clojure/install/clojure" -o new.sh
diff cur.sh new.sh
Empty diff = no port changes needed. Non-empty = port the changes into src/borkdude/deps.clj.
src/borkdude/deps.clj: the DEPS_CLJ_TOOLS_VERSION fallback literal.resources/DEPS_CLJ_VERSION.CHANGELOG.md: prepend ## <NEW> entry with - Catch up with Clojure CLI <NEW>.deps.clj + deps.bat from the src:
bb gen-script
git diff. Only the tools version literal should change in the generated scripts.bb bump-version release does all of the above (fetch latest, diff the upstream install script, bump files, gen-script, changelog) AND commits. Use the manual steps when you do not want an auto-commit.
It stops with exit code 1 and prints the diff when the install script changed between the current and the latest version: those changes need to be ported into src/borkdude/deps.clj by hand. Rerun as bb bump-version release --force to bump the version numbers after porting.
bb bump-version post-release copies DEPS_CLJ_VERSION to DEPS_CLJ_RELEASED_VERSION and bumps to the next -SNAPSHOT.
src/borkdude/deps.clj - source of truth.deps.clj / deps.bat - generated, do not edit directly.resources/DEPS_CLJ_VERSION - current (SNAPSHOT between releases).resources/DEPS_CLJ_RELEASED_VERSION - last released.script/gen_script.clj, script/bump_version.clj - tooling.Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |