Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bjagg/up4-up5-upgrade-scripts
Misc Clojure scripts to migrate data files
https://github.com/bjagg/up4-up5-upgrade-scripts
Last synced: 9 days ago
JSON representation
Misc Clojure scripts to migrate data files
- Host: GitHub
- URL: https://github.com/bjagg/up4-up5-upgrade-scripts
- Owner: bjagg
- License: apache-2.0
- Created: 2020-12-14T03:02:35.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T17:35:00.000Z (about 1 year ago)
- Last Synced: 2024-11-15T06:39:36.071Z (2 months ago)
- Language: Clojure
- Size: 40 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# uP4-uP5-upgrade-scripts
Misc Clojure scripts to migrate data files## Setting Up for Clojure Scripts
Clojure is a LISP that runs on the JVM (and in JavaScript). Some environment setup is needed to run these scripts.
### Install SDKMan
SDKMan is a tool that supports installing different versions of Java and other dev tools.
We will use it to install Java and Leiningen, the Clojure build tool.- Follow instructions at https://sdkman.io/install
### Install Java
You can skip this step if you already have JDK 1.8 or newer. If not, then follow the steps below:
```bash
sdk list java
sdk install java 8.0.275-amzn
```Above, is an example of installing a version of Java 8 JDK.
### Install Leiningen
If you have the Clojure build tool Leiningen installed, skip this step. Otherwise:
```bash
sdk install leiningen
```
### Install `lein-exec` PluginTo run Clojure scripts, we need to install the `lein-exec` plugin. We will install it globally.
```bash
mkdir ~/.lein
echo '{:user {:plugins [[lein-exec "0.3.7"]]}}' > ~/.lein/profiles.clj
lein exec -e '(println "hi")'
```### Install `lein-exec` Shell Scripts
The last step for Clojure scripts is to download and set executable flag on two scripts.
```bash
wget https://raw.github.com/kumarshantanu/lein-exec/master/lein-exec
wget https://raw.github.com/kumarshantanu/lein-exec/master/lein-exec-p
chmod a+x lein-exec lein-exec-p
mv lein-exec lein-exec-p ~/bin # assuming ~/bin is in PATH
```## References
- https://sdkman.io/
- https://leiningen.org/
- https://github.com/kumarshantanu/lein-exec