diff options
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,8 +1,11 @@ # Build Sloth cargo build - +FILENAME="$1" # Compile standard library -./target/debug/sloth std/stdio.sloth std/stdlib.sloth std/stdmath.sloth "$1" +./target/debug/sloth std/stdio.sloth std/stdlib.sloth std/stdmath.sloth $FILENAME # Generate binary -clang output.o std/stdio.c std/stdlib.c std/stdmath.c -o program +clang output.o std/stdio.c std/stdlib.c std/stdmath.c -o "${FILENAME%.sloth}" + +# Move file +mv "${FILENAME%.sloth}" . |
