Add files for Kotlin. Both are working successfully.
This commit is contained in:
1 parent
4944681eef
commit
94e83c042b
6 files changed
+132
-1
No files matched your search
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
Reference in new issue
Block a user