pascalabcnet/_RebuildReleaseAndRunTests.sh

44 lines
1.4 KiB
Bash
Raw Normal View History

2015-12-29 17:56:29 +03:00
#!/bin/sh
MONO_IOMAP=case msbuild /p:Configuration=release pabcnetc.sln
MONO_IOMAP=case msbuild /p:Configuration=release CodeCompletion/CodeCompletion.csproj
mono --aot bin/pabcnetc.exe
mono --aot bin/NETGenerator.dll
mono --aot bin/TreeConverter.dll
mono --aot bin/Compiler.dll
mono --aot bin/SyntaxTree.dll
mono --aot bin/SemanticTree.dll
mono --aot bin/PascalABCParser.dll
mono --aot bin/ParserTools.dll
mono --aot bin/CompilerTools.dll
mono --aot bin/OptimizerConversion.dll
mono --aot bin/Errors.dll
2015-12-29 17:56:29 +03:00
export MONO_IOMAP=all
cd ReleaseGenerators
2021-04-09 23:38:07 +03:00
mono ../bin/pabcnetc.exe RebuildStandartModulesMono.pas /rebuild
2015-12-29 17:56:29 +03:00
if [ $? -eq 0 ]; then
cd PABCRtl
mono ../../bin/pabcnetc.exe PABCRtl.pas /rebuild
if [ $? -eq 0 ]; then
sn -Vr PABCRtl.dll
sn -R PABCRtl.dll KeyPair.snk
sn -Vu PABCRtl.dll
cp PABCRtl.dll ../../bin/Lib
mono ../../bin/pabcnetc.exe PABCRtl32.pas /rebuild
if [ $? -eq 0 ]; then
sn -Vr PABCRtl32.dll
sn -R PABCRtl32.dll KeyPair32.snk
sn -Vu PABCRtl32.dll
cp PABCRtl32.dll ../../bin/Lib
sudo gacutil -u PABCRtl
sudo gacutil -i ../../bin/Lib/PABCRtl.dll
2015-12-29 20:36:47 +03:00
cd ..
2015-12-29 17:56:29 +03:00
mono ../bin/pabcnetc.exe RebuildStandartModules.pas /rebuild
if [ $? -eq 0 ]; then
cd ../bin
mono TestRunner.exe
cd ..
fi
fi
fi
2015-12-29 20:36:47 +03:00
fi