aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
l---------bin/.cmake-3.21.2.pkg1
-rw-r--r--bin/README.hermit.md7
-rwxr-xr-xbin/activate-hermit19
l---------bin/ccmake1
l---------bin/cmake1
l---------bin/cmake-gui1
l---------bin/cpack1
l---------bin/ctest1
-rwxr-xr-xbin/hermit26
-rw-r--r--bin/hermit.hcl0
10 files changed, 58 insertions, 0 deletions
diff --git a/bin/.cmake-3.21.2.pkg b/bin/.cmake-3.21.2.pkg
new file mode 120000
index 0000000..383f451
--- /dev/null
+++ b/bin/.cmake-3.21.2.pkg
@@ -0,0 +1 @@
+hermit \ No newline at end of file
diff --git a/bin/README.hermit.md b/bin/README.hermit.md
new file mode 100644
index 0000000..e889550
--- /dev/null
+++ b/bin/README.hermit.md
@@ -0,0 +1,7 @@
+# Hermit environment
+
+This is a [Hermit](https://github.com/cashapp/hermit) bin directory.
+
+The symlinks in this directory are managed by Hermit and will automatically
+download and install Hermit itself as well as packages. These packages are
+local to this environment.
diff --git a/bin/activate-hermit b/bin/activate-hermit
new file mode 100755
index 0000000..3b191fb
--- /dev/null
+++ b/bin/activate-hermit
@@ -0,0 +1,19 @@
+#!/bin/bash
+# This file must be used with "source bin/activate-hermit" from bash or zsh.
+# You cannot run it directly
+
+if [ "${BASH_SOURCE-}" = "$0" ]; then
+ echo "You must source this script: \$ source $0" >&2
+ exit 33
+fi
+
+BIN_DIR="$(dirname "${BASH_SOURCE[0]:-${(%):-%x}}")"
+if "${BIN_DIR}/hermit" noop > /dev/null; then
+ eval "$("${BIN_DIR}/hermit" activate "${BIN_DIR}/..")"
+
+ if [ -n "${BASH-}" ] || [ -n "${ZSH_VERSION-}" ]; then
+ hash -r 2>/dev/null
+ fi
+
+ echo "Hermit environment $("${HERMIT_ENV}"/bin/hermit env HERMIT_ENV) activated"
+fi
diff --git a/bin/ccmake b/bin/ccmake
new file mode 120000
index 0000000..3094f47
--- /dev/null
+++ b/bin/ccmake
@@ -0,0 +1 @@
+.cmake-3.21.2.pkg \ No newline at end of file
diff --git a/bin/cmake b/bin/cmake
new file mode 120000
index 0000000..3094f47
--- /dev/null
+++ b/bin/cmake
@@ -0,0 +1 @@
+.cmake-3.21.2.pkg \ No newline at end of file
diff --git a/bin/cmake-gui b/bin/cmake-gui
new file mode 120000
index 0000000..3094f47
--- /dev/null
+++ b/bin/cmake-gui
@@ -0,0 +1 @@
+.cmake-3.21.2.pkg \ No newline at end of file
diff --git a/bin/cpack b/bin/cpack
new file mode 120000
index 0000000..3094f47
--- /dev/null
+++ b/bin/cpack
@@ -0,0 +1 @@
+.cmake-3.21.2.pkg \ No newline at end of file
diff --git a/bin/ctest b/bin/ctest
new file mode 120000
index 0000000..3094f47
--- /dev/null
+++ b/bin/ctest
@@ -0,0 +1 @@
+.cmake-3.21.2.pkg \ No newline at end of file
diff --git a/bin/hermit b/bin/hermit
new file mode 100755
index 0000000..d13a24d
--- /dev/null
+++ b/bin/hermit
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+set -eo pipefail
+
+if [ -z "${HERMIT_STATE_DIR}" ]; then
+ case "$(uname -s)" in
+ Darwin)
+ export HERMIT_STATE_DIR="${HOME}/Library/Caches/hermit"
+ ;;
+ Linux)
+ export HERMIT_STATE_DIR="${XDG_CACHE_HOME:-${HOME}/.cache}/hermit"
+ ;;
+ esac
+fi
+
+export HERMIT_DIST_URL="${HERMIT_DIST_URL:-https://github.com/cashapp/hermit/releases/download/stable}"
+HERMIT_CHANNEL="$(basename "${HERMIT_DIST_URL}")"
+export HERMIT_CHANNEL
+export HERMIT_EXE=${HERMIT_EXE:-${HERMIT_STATE_DIR}/pkg/hermit@${HERMIT_CHANNEL}/hermit}
+
+if [ ! -x "${HERMIT_EXE}" ]; then
+ echo "Bootstrapping ${HERMIT_EXE} from ${HERMIT_DIST_URL}" 1>&2
+ curl -fsSL "${HERMIT_DIST_URL}/install.sh" | /bin/bash 1>&2
+fi
+
+exec "${HERMIT_EXE}" --level=fatal exec "$0" -- "$@"
diff --git a/bin/hermit.hcl b/bin/hermit.hcl
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bin/hermit.hcl