Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
Pass `-encoding UTF-8` to javac.

Also, update sharp-bang to something more portable.
  • Loading branch information
AndersonTorres authored Oct 16, 2021
1 parent 28b3667 commit ff08d6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
#!/usr/bin/env bash
rm -f APL.jar
rm -rf src/build/APL
cd src
mkdir -p build
javac -Xmaxerrs 1000 -d ./build $(find APL -name '*.java')
javac -encoding UTF-8 -Xmaxerrs 1000 -d ./build $(find APL -name '*.java')
cd build
jar cvfe APL.jar APL.Main * > /dev/null
mv APL.jar ../../APL.jar
mv APL.jar ../../APL.jar

0 comments on commit ff08d6b

Please sign in to comment.