build: add hotfix clean target which does core and plugins in one step

This commit is contained in:
Franco Fichtner 2024-02-15 15:23:51 +01:00
parent 3bcd199713
commit 11eac352ab
3 changed files with 12 additions and 2 deletions

View File

@ -62,6 +62,16 @@ for ARG in ${@}; do
echo ">>> Removing dvd image"
rm -f ${IMAGESDIR}/*-dvd-${PRODUCT_ARCH}.iso*
;;
hotfix)
echo ">>> Removing plugins and core from packages set"
setup_stage ${STAGEDIR}
setup_base ${STAGEDIR}
if extract_packages ${STAGEDIR}; then
remove_packages ${STAGEDIR} ${PRODUCT_CORES} \
${PRODUCT_PLUGINS}
bundle_packages ${STAGEDIR} '' plugins core
fi
;;
images)
setup_stage ${IMAGESDIR}
;;

View File

@ -32,7 +32,7 @@ set -e
if [ -z "${TARGET}" -o "${TARGET}" = "plugins" -o "${TARGET}" = "core" ]; then
# force a full rebuild of selected stage(s)
make clean-${TARGET:-"plugins,core"} packages
make clean-${TARGET:-"hotfix"} packages
elif [ "${TARGET}" = "ports" ]; then
# force partial rebuild of out of date ports
make ports-${1} PORTSENV="MISMATCH=no ${PORTSENV}"

View File

@ -30,7 +30,7 @@ CONTINUE=
STAGENUM=0
if [ -n "${1}" ]; then
CLEAN=plugins,core
CLEAN=hotfix
CONTINUE=-nightly
PORTSENV="MISMATCH=no"
fi