1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- # shellcheck shell=sh
- # shellcheck disable=3043
- upmanifest() (
- umask 022
- doas pkgdev manifest "${@}"
- )
- up() (
- umask 022
- doas sh -uec "$(
- printf '%s && ' \
- '(eix-sync || :)' \
- 'cd /var/db/repos' \
- "fd . -t d -X chmod o+rx '{}'" \
- "fd . -t f -X chmod o+r '{}'"
- ):"
- )
- pkg() {
- : "${PWD:=$(pwd)}"
- local __category="${PWD%/*}"
- printf '%s/%s\n' "${__category##*/}" "${PWD##*/}"
- }
- curless() { curl -sL "${@}" | less; }
- echlog() {
- local url
- url="$(epkginfo -U "${@}" | sed -n 's/^ChangeLog:\s\+\(.*\)/\1/p')"
- [ "${url}" ] && curless -- "${url}"
- }
- # shellcheck disable=2016
- kmake() (
- env="$(
- printf '%s; ' \
- 'if [ -r /usr/src/.env ]' \
- 'then . /usr/src/.env' \
- 'fi && exec make "${@}"'
- )"
- cd /usr/src/linux && exec doas -- sh -xlc "${env}" sh "${@}"
- )
- kconf() { kmake nconfig "${@}"; }
- kinstall() { kmake install "${@}"; }
|