-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a23315
commit 31c2518
Showing
3 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# Copyright 2024 The Jule Programming Language. | ||
# Use of this source code is governed by a BSD 3-Clause | ||
# license that can be found in the LICENSE file. | ||
|
||
if [ -f ./src/main.jule ]; then | ||
julec --opt-deadcode -o julefmt ./src | ||
else | ||
echo "error: working directory is not root directory" | ||
exit | ||
fi | ||
|
||
if [ $? -eq 0 ]; then | ||
./julefmt $@ | ||
else | ||
echo "-----------------------------------------------------------------------" | ||
echo "An unexpected error occurred while compiling JuleFmt. Check errors above." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# Copyright 2024 The Jule Programming Language. | ||
# Use of this source code is governed by a BSD 3-Clause | ||
# license that can be found in the LICENSE file. | ||
|
||
if [ -f ./src/main.jule ]; then | ||
julec --opt-deadcode -o julefmt ./src | ||
else | ||
echo "error: working directory is not root directory" | ||
exit | ||
fi | ||
|
||
if [ $? -eq 0 ]; then | ||
echo "Compilation successful!" | ||
else | ||
echo "-----------------------------------------------------------------------" | ||
echo "An unexpected error occurred while compiling JuleFmt. Check errors above." | ||
fi |