Update 2023-12-21 22:27 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2023-12-21 22:27:33 +01:00
parent a1e7a589d0
commit a0b32efe60

90
.bin/pmake Executable file
View File

@ -0,0 +1,90 @@
#!/bin/sh
. ~/.bin/_config
set -xe
_install()
{
_make
export PKG_ADD="/usr/sbin/pkg_add -a"
export FETCH_PACKAGES=No
make install
}
_reinstall()
{
_make
export PKG_ADD="/usr/sbin/pkg_add -a"
export FETCH_PACKAGES=No
make reinstall
}
_fake()
{
_make
make fake
}
_refake()
{
_make
make clean=fake
make fake
}
_clean()
{
make clean="all"
}
_realclean()
{
_clean
make clean=dist
}
_makesum()
{
make -j10 makesum
}
_fetch()
{
make -j10 fetch
}
_refetch()
{
make clean=dist
make -j10 fetch
}
_make()
{
export PKG_ADD="/usr/sbin/pkg_add -a"
export FETCH_PACKAGES=-Dsnap
make install-depends
_fetch
export FETCH_PACKAGES=No
make
}
_update-go()
{
needs go--
make MODGO_VERSION=latest modgo-gen-modules > modules.inc.new
}
case $1 in
fake) _fake; ;;
refake) _refake; ;;
install) _install; ;;
reinstall) _reinstall; ;;
clean) _clean; ;;
makesum) _makesum; ;;
remakesum) _remakesum; ;;
update-go) _update-go; ;;
*) [ -z "$1" ] && _make; ;;
esac