piston/packages/kotlin/1.8.20/compile

6 lines
143 B
Bash

#!/usr/bin/env bash
rename 's/$/\.kt/' "$@" # Add .kt extension
# Compile Kotlin code to a jar file
kotlinc *.kt -include-runtime -d code.jar