Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Note that this patch does not port cuerdas.core/istr and cuerdas.core/<<.
- Loading branch information
1 parent
a844372
commit af52064
Showing
7 changed files
with
85 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ pom.xml.asc | |
/nashorn_code_cache | ||
/.idea | ||
/cuerdas.iml | ||
.lumo_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -eu | ||
|
||
prefix_dir=${1:-} | ||
|
||
if [ -z "$prefix_dir" ]; then | ||
echo "Must pass prefix dir as first parameter" | ||
exit 1 | ||
fi | ||
|
||
bin_dir="$prefix_dir/bin" | ||
lumo_bin="$bin_dir/lumo" | ||
|
||
if [ ! -x "$lumo_bin" ]; then | ||
tmp_dir=$(mktemp -d /tmp/lumo.XXXXXXXXXX) || { echo "Failed to create temp file"; exit 2; } | ||
zip_path="$tmp_dir/lumo.zip" | ||
curl -fsSJLo "$zip_path" https://github.com/anmonteiro/lumo/releases/download/1.8.0/lumo_linux64.zip | ||
unzip -vp "$zip_path" lumo > "$lumo_bin" | ||
chmod +x "$lumo_bin" | ||
echo "Installed Lumo in $bin_dir" | ||
else | ||
echo "Not installing Lumo, already in $bin_dir" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(ns cuerdas.runner | ||
(:require [clojure.test :as test] | ||
[cuerdas.core-tests])) | ||
|
||
(test/run-tests 'cuerdas.core-tests) |