forked from yanghuan/CSharp.lua
-
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
pracplay
committed
Dec 1, 2020
1 parent
2334e61
commit 79801c1
Showing
7 changed files
with
46 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
all: | ||
./build.sh | ||
./convert.sh | ||
./runtest.sh |
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,10 @@ | ||
#!/bin/sh | ||
|
||
# build solution | ||
dotnet build /p:Configuration=Release CSharp.lua.sln | ||
berr=$? | ||
if [ "$berr" != 0 ]; then | ||
echo "errors occuring during build, please fix and retry...">&2 | ||
exit $berr | ||
fi | ||
echo "build ok." |
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,20 @@ | ||
#!/bin/sh | ||
srcp=$1 | ||
dstp="./out" | ||
|
||
if [ -z "$srcp" ]; then | ||
echo "no source directory for conversion supplied, using fibonacci src as default...">&2 | ||
srcp=./test/fibonacci/src | ||
fi | ||
|
||
if ! [ -d "$dstp" ]; then mkdir "$dstp"; fi | ||
dotnet ./CSharp.lua.Launcher/bin/Release/net5.0/CSharp.lua.Launcher.dll -s "$srcp" -d "$dstp/." | ||
converterr=$? | ||
if [ $converterr != 0 ]; then | ||
echo "errors occurred during convert">&2 | ||
exit 2 | ||
fi | ||
echo "convert ok to $dstp.">&2 | ||
echo "run ./runtest.sh to attempt to interpret output.">&2 | ||
exit 0 | ||
|
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,5 @@ | ||
package.path = package.path .. ";./CSharp.lua/CoreSystem.Lua/?.lua" | ||
require ("All")() | ||
require("out.manifest")("out") | ||
Test.Program.Main() | ||
os.exit() |
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,2 @@ | ||
#!/bin/sh | ||
lua -i runtest.lua |
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