diff --git a/languages/cobra b/languages/cobra new file mode 100755 index 0000000..2f1b8a5 --- /dev/null +++ b/languages/cobra @@ -0,0 +1,19 @@ +#!/bin/bash + +# Does NOT work with recent versions of Mono. + +err=0 +trap 'err=1' ERR + +rm -rf cobra +mkdir cobra +cd cobra +curl -sSL http://cobra-language.com/downloads/Cobra-0.9.6.tar.gz \ + | tar xz --strip-components=1 +cd Source +mono Snapshot/cobra.exe -compile -turbo -ert:yes cobra.cobra -files:files-to-compile.text +mono cobra.exe -build-standard-library -debug -turbo -out:Cobra.Core.dll -key-file:Cobra.Core/Cobra.Core.snk Cobra.Core/AssemblyAttrs.cobra +mono cobra.exe -c -t:lib -embed-version -ert:yes -namespace:Cobra.Compiler -files:files-to-compile.text -debug -turbo -out:Cobra.Compiler.dll -key-file:Cobra.Core/Cobra.Core.snk cobra.cobra +mono cobra.exe -c -t:lib -embed-version -debug -turbo -out:Cobra.MSBuild.dll -key-file:Cobra.Core/Cobra.Core.snk Cobra.MSBuild/CobraCompiler.cobra + +exit "$err"