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 source /usr
/local
/lib
/err
9 m
() { printf "$pre %s\n" "$*"; "$@"; }
10 e
() { printf "$pre %s\n" "$*"; }
11 err
() { echo "[$(date +'%Y-%m-%d %H:%M:%S%z')]: $pre: $*" >&2; }
13 if [[ $EUID == 0 ]]; then
20 /a
/bin
/buildscripts
/rust
23 for pkg
in xorg wayland
; do
24 if dpkg
-s -- $pkg |
& grep -Fx "Status: install ok installed" &> /dev
/null
; then
31 /a
/bin
/buildscripts
/tor-browser
32 /a
/bin
/buildscripts
/misc
36 # source /a/bin/distro-setup/path-add-function
37 # export GOPATH=$HOME/go
38 # path-add $GOPATH/bin
39 # path-add /usr/local/go/bin
40 # l /a/bin/buildscripts/go
41 # l go get -u mvdan.cc/fdroidcl