Skip to content

Commit

Permalink
added Cobra
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisMitchell committed Jan 4, 2019
1 parent 6535e2f commit 007b374
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions languages/cobra
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 007b374

Please sign in to comment.