2 # Copyright (C) 2019 Ian Kelling
3 # SPDX-License-Identifier: AGPL-3.0-or-later
5 if [ -z "$BASH_VERSION" ]; then echo "error: shell is not bash" >&2; exit 1; fi
7 shopt -s inherit_errexit
2>/dev
/null ||
: # ignore fail in bash < 4.4
9 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
10 # alternatively, using https://iankelling.org/git/?p=errhandle;a=tree
11 # source /path/errhandle/err
13 source /a
/bin
/errhandle
/err
15 # fuck pip. i hate it.
16 # pip install --user -U pip
17 # Traceback (most recent call last):
18 # File "/usr/local/bin/pip", line 10, in <module>
20 # TypeError: 'module' object is not callable
21 # if type -t pip &>/dev/null; then
22 # pip install --user -U pip
25 # wget -O$x https://bootstrap.pypa.io/get-pip.py
29 # https://github.com/jlebon/textern
32 make native-install USER
=1