From fe4db5a94b857bbf3a61a6870269c980b1ab528c Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Fri, 31 Aug 2018 16:06:12 -0400 Subject: [PATCH] Add 40x scripts --- sh/401-node | 16 ++++++++++++++++ sh/402-crystal | 21 +++++++++++++++++++++ sh/403-rust | 21 +++++++++++++++++++++ sh/404-java | 10 ++++++++++ 4 files changed, 68 insertions(+) create mode 100644 sh/401-node create mode 100644 sh/402-crystal create mode 100644 sh/403-rust create mode 100644 sh/404-java diff --git a/sh/401-node b/sh/401-node new file mode 100644 index 0000000..e845e8d --- /dev/null +++ b/sh/401-node @@ -0,0 +1,16 @@ +#!/bin/sh +# +# Node lets us write JavaScript code outside of the browser. +# +# Yarn is the preferred dependency manager, however, some programs +# have npm hard-coded as a dependency, so we install that as well. +# +# https://wiki.archlinux.org/index.php/Node.js + +set -xe + +pacman -S nodejs + +pacman -S npm + +pacman -S yarn diff --git a/sh/402-crystal b/sh/402-crystal new file mode 100644 index 0000000..7953687 --- /dev/null +++ b/sh/402-crystal @@ -0,0 +1,21 @@ +#!/bin/sh +# +# Crystal is a nice programming language that lets us use +# the usability of Ruby with the performance of C. +# +# `shards` is the official dependency manager for Crystal. +# +# The low level virtual machine (llvm) is used to build +# crystal directly from the source. This is useful when +# we're making changes to the Crystal programming language +# itself. +# +# https://wiki.archlinux.org/index.php/Crystal + +set -xe + +pacman -S crystal + +pacman -S shards + +pacman -S llvm diff --git a/sh/403-rust b/sh/403-rust new file mode 100644 index 0000000..e50b3b1 --- /dev/null +++ b/sh/403-rust @@ -0,0 +1,21 @@ +#!/bin/sh +# +# Rust is a nice programming language that finds many errors +# for us at compile time. This is useful for writing safe code. +# +# The `rustup` package is used over `rust` because this allows us +# to have multiple rust versions at any given time and update them +# as needed. +# +# There are 3 toolchains: stable, beta, and nightly. In this script +# we install the stable toolchain and make it the default. +# +# https://wiki.archlinux.org/index.php/Rust + +set -xe + +pacman -S rustup + +rustup install stable + +rustup default stable diff --git a/sh/404-java b/sh/404-java new file mode 100644 index 0000000..0b034fd --- /dev/null +++ b/sh/404-java @@ -0,0 +1,10 @@ +#!/bin/sh +# +# Java is a programming language used in many programming contests. +# This is arguably the only reason why we have it here. +# +# https://wiki.archlinux.org/index.php/Java + +set -xe + +pacman -S jdk10-openjdk