Changeset View
Changeset View
Standalone View
Standalone View
Mk/Scripts/smart_makepatch.sh
Show All 19 Lines | |||||
# multipatch file might corrupt the comment (or be interpreted as | # multipatch file might corrupt the comment (or be interpreted as | ||||
# a comment) of the following patch. (garbage in, garbage out) | # a comment) of the following patch. (garbage in, garbage out) | ||||
# | # | ||||
# Reminder | # Reminder | ||||
# Don't forget to disable post-patch targets before regenerating patches | # Don't forget to disable post-patch targets before regenerating patches | ||||
# if those targets modify source files (e.g. with sed). You may also | # if those targets modify source files (e.g. with sed). You may also | ||||
# want to disable EXTRA_PATCHES as well if that is being used. | # want to disable EXTRA_PATCHES as well if that is being used. | ||||
set -o pipefail | |||||
[ -n "${DEBUG_MK_SCRIPTS}" -o -n "${DEBUG_MK_SCRIPTS_SMART_MAKEPATCH}" ] && set -x | [ -n "${DEBUG_MK_SCRIPTS}" -o -n "${DEBUG_MK_SCRIPTS_SMART_MAKEPATCH}" ] && set -x | ||||
if [ -z "${PATCHDIR}" -o -z "${PATCH_WRKSRC}" -o -z "${WRKDIR}" ]; then | if [ -z "${PATCHDIR}" -o -z "${PATCH_WRKSRC}" -o -z "${WRKDIR}" ]; then | ||||
echo "WRKDIR, PATCHDIR, and PATCH_WRKSRC required in environment." >&2 | echo "WRKDIR, PATCHDIR, and PATCH_WRKSRC required in environment." >&2 | ||||
exit 1 | exit 1 | ||||
fi | fi | ||||
WORKAREA=${WRKDIR}/.makepatch-tmp | WORKAREA=${WRKDIR}/.makepatch-tmp | ||||
▲ Show 20 Lines • Show All 261 Lines • Show Last 20 Lines |