Compare commits
No commits in common. "21fe3eefc2a1031ae2c96d35523b71adc0159ff0" and "5d8c7dfabcec937492130ba3b8381d32f5d663ff" have entirely different histories.
21fe3eefc2
...
5d8c7dfabc
|
@ -2,15 +2,12 @@
|
||||||
|
|
||||||
PREFIX=$(realpath $(dirname $0))
|
PREFIX=$(realpath $(dirname $0))
|
||||||
|
|
||||||
mkdir -p build/mono build/mono-basic
|
mkdir -p build/mono
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
curl "https://download.mono-project.com/sources/mono/mono-6.12.0.122.tar.xz" -o mono.tar.xz
|
curl "https://download.mono-project.com/sources/mono/mono-6.12.0.122.tar.xz" -o mono.tar.xz
|
||||||
curl -L "https://github.com/mono/mono-basic/archive/refs/tags/4.7.tar.gz" -o mono-basic.tar.gz
|
|
||||||
tar xf mono.tar.xz --strip-components=1 -C mono
|
tar xf mono.tar.xz --strip-components=1 -C mono
|
||||||
tar xf mono-basic.tar.gz --strip-components=1 -C mono-basic
|
|
||||||
|
|
||||||
# Compiling Mono
|
|
||||||
cd mono
|
cd mono
|
||||||
|
|
||||||
./configure --prefix "$PREFIX"
|
./configure --prefix "$PREFIX"
|
||||||
|
@ -18,15 +15,6 @@ cd mono
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install -j$(nproc)
|
make install -j$(nproc)
|
||||||
|
|
||||||
export PATH="$PREFIX/bin:$PATH" # To be able to use mono commands
|
|
||||||
|
|
||||||
# Compiling mono-basic
|
|
||||||
cd ../mono-basic
|
|
||||||
./configure --prefix="$PREFIX"
|
|
||||||
|
|
||||||
make -j$(nproc) PLATFORM="linux" # Avoids conflict with the $PLATFORM variable we have
|
|
||||||
make install -j$(nproc) PLATFORM="linux"
|
|
||||||
|
|
||||||
# Remove redundant files
|
|
||||||
cd ../../
|
cd ../../
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
case "${PISTON_LANGUAGE}" in
|
rename 's/$/\.cs/' "$@" # Add .cs extension
|
||||||
csharp)
|
csc -out:out *.cs
|
||||||
rename 's/$/\.cs/' "$@" # Add .cs extension
|
|
||||||
csc -out:out *.cs
|
|
||||||
;;
|
|
||||||
basic)
|
|
||||||
rename 's/$/\.vb/' "$@" # Add .vb extension
|
|
||||||
vbnc -out:out *.vb
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "How did you get here? (${PISTON_LANGUAGE})"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
|
@ -5,10 +5,6 @@
|
||||||
{
|
{
|
||||||
"language": "csharp",
|
"language": "csharp",
|
||||||
"aliases": ["mono", "mono-csharp", "mono-c#", "mono-cs", "c#", "cs"]
|
"aliases": ["mono", "mono-csharp", "mono-c#", "mono-cs", "c#", "cs"]
|
||||||
},
|
|
||||||
{
|
|
||||||
"language": "basic",
|
|
||||||
"aliases": ["vb", "mono-vb", "mono-basic", "visual-basic", "visual basic"]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
Imports System
|
|
||||||
|
|
||||||
Module Module1
|
|
||||||
|
|
||||||
Sub Main()
|
|
||||||
Console.WriteLine("OK")
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
End Module
|
|
Loading…
Reference in New Issue