Skip to content

Commit a8c957e

Browse files
committed
Update build script to copy necessary dependencies.
1 parent 8584cfc commit a8c957e

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

Algo/ALEC/ALEC.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public static void Compile(string file)
167167
Log("MAKE SURE YOU HAVE MKBUNDLE INSTALLED, AND HAVE A MONO 'machine.config' AT /etc/mono/4.5/machine.config.");
168168
Process proc = new Process();
169169
proc.StartInfo.FileName = "/bin/bash";
170-
proc.StartInfo.Arguments = "-c \" mkbundle -o " + ProjectName + " --simple " + cp.OutputAssembly + " --machine-config /etc/mono/4.5/machine.config --no-config --nodeps *.dll \"";
170+
proc.StartInfo.Arguments = "-c \" mkbundle -o " + ProjectName + " --simple " + cp.OutputAssembly + " --machine-config /etc/mono/4.5/machine.config --no-config --nodeps *.dll Algo.exe \"";
171171
proc.StartInfo.UseShellExecute = false;
172172
proc.StartInfo.RedirectStandardOutput = true;
173173
proc.Start();

BuildLinux.sh

+1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ cp Algo/Standard\ Library/Algo\ Scripts/* Builds/std
2121
# Copy over the main executable and Antlr dependencies for compile purposes.
2222
cp Algo/bin/Debug/Algo.exe Builds/
2323
cp Algo/bin/Debug/Antlr4.Runtime.dll Builds/
24+
cp Algo/bin/Debug/AlgoSDK.dll Builds/
2425

2526
echo BUILD COMPLETE!

Examples/palindromeDetector.ag

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//Import dependencies.
2+
import "io";
3+
4+
//Get the string the user wants to check.
5+
print "Please enter a string to check.";
6+
let toCheck = input.get();
7+
8+
//Reverse, compare.
9+
let reversed = string.reverse(toCheck);
10+
if (reversed == toCheck)
11+
{
12+
print "That is a palindrome!";
13+
}
14+
else
15+
{
16+
print "That is not a palindrome.";
17+
}

0 commit comments

Comments
 (0)