This repository has been archived on 2025-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
misc-spare-change/kotlin_compiled.sh

16 lines
375 B
Bash
Executable File

#!/usr/bin/env bash
# 2024-03-30 Hyperling
# Compile the .kt file and run the compiled binary.
# Move to the file location.
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
cd $DIR
# Compile the script.
kotlinc spare_change.kt -include-runtime -d spare_change.kt.jar
# Run the executable.
chmod 755 ./spare_change.kt.jar
java -jar spare_change.kt.jar
rm -rfv ./spare_change.kt.jar