summary refs log tree commit diff
path: root/install.sh
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2017-06-10 22:58:52 -0400
committerJune McEnroe <programble@gmail.com>2017-06-10 22:58:52 -0400
commit5f3f1be77c6259d95cabc5a5b10c3cfb50e92a76 (patch)
tree67d846c0a8b5cb023ebcdbc80fecc514cc540068 /install.sh
parentAdd .hushlogin (diff)
downloadsrc-5f3f1be77c6259d95cabc5a5b10c3cfb50e92a76.tar.gz
src-5f3f1be77c6259d95cabc5a5b10c3cfb50e92a76.zip
Add untested install script
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/install.sh b/install.sh
new file mode 100755
index 00000000..8b9df7c8
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+set -eu
+
+common=gdb git gnupg htop the_silver_searcher tmux tree
+
+macos() {
+  homebrew=https://raw.githubusercontent.com/Homebrew/install/master/install
+  xcode-select --install || true
+  [ ! -f /usr/local/bin/brew ] && ruby -e "`curl -fsSL $homebrew`"
+  brew install $common
+  brew install neovim/neovim/neovim openssh
+  brew cask install iterm2
+}
+
+freebsd() {
+  pkg install $common
+  pkg install curl neovim sudo zsh
+}
+
+arch() {
+  pacman -Sy --needed base-devel
+  pacman -Sy --needed $common
+  pacman -Sy --needed neovim openssh zsh
+}
+
+[ "`uname`" = 'Darwin' ] && exec macos
+[ -f /usr/local/sbin/pkg ] && exec freebsd
+[ -f /usr/bin/pacman ] && exec arch
8d&follow=1'>Import LibreSSL 3.3.3June McEnroe 2021-04-18build: Remove added x509_verify.3 links 3.3.2June McEnroe 2021-04-18tls: Use EC_KEY_set_ex_dataJune McEnroe 2021-04-18Import LibreSSL 3.3.2June McEnroe 2021-03-05Bump version to 3.3.1p1 3.3.1p1June McEnroe 2021-03-05build: Add OpenSSL includes to libcompatJune McEnroe 2020-12-15Import LibreSSL 3.3.1June McEnroe 2020-11-24Import LibreSSL 3.3.0June McEnroe 2020-10-22Import LibreSSL 3.2.2June McEnroe 2020-09-29Import LibreSSL 3.2.1June McEnroe 2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe 2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe 2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe