lots of fixes, automation for bitfolk
[distro-setup] / dall
diff --git a/dall b/dall
new file mode 100755 (executable)
index 0000000..3ed8d44
--- /dev/null
+++ b/dall
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+if ! test "$BASH_VERSION"; then echo "error: shell is not bash" >&2; exit 1; fi
+shopt -s inherit_errexit 2>/dev/null ||: # ignore fail in bash < 4.4
+set -eE -o pipefail
+trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" exit status: $?, PIPESTATUS: ${PIPESTATUS[*]}" >&2' ERR
+
+readonly this_file="$(readlink -f -- "${BASH_SOURCE[0]}")"
+readonly this_dir="${this_file%/*}"
+cd "$this_dir"
+./distro-begin
+./distro-end