rebuild-pkg: Script to rebuild/reinstall a binpkg

This script can be used to rebuild a binary package in the SYSROOT and
reinstall it in the destination root.

```sh
./rebuild-pkg sec-policy/selinux-aimee-os
make -W /tmp/build/.built O=/tmp/build IMAGESDIR=${PWD}/images
```
master
Dustin 2023-03-09 10:07:25 -06:00
parent ff5f8b5c3b
commit 1a1a64a16d
1 changed files with 12 additions and 0 deletions

12
rebuild-pkg.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
# vim: set sw=4 ts=4 sts=4 et :
set -e
. ./config
unset MAKEFLAGS MAKEOVERRIDES MAKELEVEL
export PORTAGE_CONFIGROOT="${PWD}"/portage/config/target
${target}-emerge -bv1j --usepkg-exclude="$*" "$@"