mirror of
https://github.com/cosinekitty/astronomy.git
synced 2025-12-30 11:09:33 -05:00
14 lines
425 B
Bash
Executable File
14 lines
425 B
Bash
Executable File
#!/bin/bash
|
|
Fail()
|
|
{
|
|
echo "ERROR($0): $1"
|
|
exit 1
|
|
}
|
|
|
|
./generate source || Fail "Problem generating target code."
|
|
|
|
cd dotnet/csharp_test || "Cannot change to directory dotnet/csharp_test"
|
|
dotnet build --output ${PWD}/exe || Fail "Error building C# source code"
|
|
time dotnet ${PWD}/exe/csharp_test.dll lunar_eclipse || Fail "Error running lunar eclipse test."
|
|
cd ../.. || Fail "Error changing back to generate directory"
|