[#24] New language: Red
This commit is contained in:
parent
fce9b88136
commit
c1f493b976
|
@ -2814,6 +2814,19 @@ end
|
||||||
123 * 234`,
|
123 * 234`,
|
||||||
template: `REBOL [Title: "Main"]
|
template: `REBOL [Title: "Main"]
|
||||||
print "Hello, world!"
|
print "Hello, world!"
|
||||||
|
`,
|
||||||
|
},
|
||||||
|
red: {
|
||||||
|
name: "Red",
|
||||||
|
setup: "cp -R /opt/red/template .red",
|
||||||
|
repl: "/usr/local/bin/red",
|
||||||
|
input: `DELAY: 1
|
||||||
|
123 * 234`,
|
||||||
|
main: "main.red",
|
||||||
|
run: "/usr/local/bin/red main.red; /usr/local/bin/red",
|
||||||
|
template: `Red [Title: "Main"]
|
||||||
|
|
||||||
|
print "Hello, world!"
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
redis: {
|
redis: {
|
||||||
|
|
|
@ -122,6 +122,9 @@ ratfor
|
||||||
# rc
|
# rc
|
||||||
rc
|
rc
|
||||||
|
|
||||||
|
# Red
|
||||||
|
libcurl4:i386
|
||||||
|
|
||||||
# Redis
|
# Redis
|
||||||
redis
|
redis
|
||||||
|
|
||||||
|
|
|
@ -305,6 +305,12 @@ tar -xf rebol-core-*.tar.gz
|
||||||
mv rebol-core/rebol /usr/local/bin/
|
mv rebol-core/rebol /usr/local/bin/
|
||||||
rm -rf rebol-core rebol-core-*.tar.gz
|
rm -rf rebol-core rebol-core-*.tar.gz
|
||||||
|
|
||||||
|
# Red
|
||||||
|
path="$(curl -sSL https://static.red-lang.org/download.html | grep -Eo '/dl/linux/[^"]+' | head -n1)"
|
||||||
|
wget -nv "https://static.red-lang.org/${path}" -O /usr/local/bin/red
|
||||||
|
chmod +x /usr/local/bin/red
|
||||||
|
rm red-latest.zip
|
||||||
|
|
||||||
# Rust
|
# Rust
|
||||||
export CARGO_HOME=/opt/rust
|
export CARGO_HOME=/opt/rust
|
||||||
export RUSTUP_HOME=/opt/rust
|
export RUSTUP_HOME=/opt/rust
|
||||||
|
|
|
@ -71,6 +71,11 @@ cat bsconfig.json | jq '.name = "riju-project"' | sponge bsconfig.json
|
||||||
yarn install
|
yarn install
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
|
|
||||||
|
# Red
|
||||||
|
sudo -u build /usr/local/bin/red <<< quit
|
||||||
|
mkdir /opt/red
|
||||||
|
mv /home/build/.red /opt/red/template
|
||||||
|
|
||||||
# Unison
|
# Unison
|
||||||
mkdir -p /opt/unison/project-template
|
mkdir -p /opt/unison/project-template
|
||||||
pushd /opt/unison/project-template >/dev/null
|
pushd /opt/unison/project-template >/dev/null
|
||||||
|
|
Loading…
Reference in New Issue