Skip to content

Commit

Permalink
make: add diff and mfc target, my best friends
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jul 4, 2018
1 parent 8102296 commit d223693
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,32 @@ dhparam:
${.CURDIR}/src/etc/dh-parameters.${BITS}.sample ${BITS}
.endfor

diff:
@git diff --stat -p stable/${CORE_ABI}

ARGS= mfc

# handle argument expansion for required targets
.for TARGET in ${.TARGETS}
_TARGET= ${TARGET:C/\-.*//}
.if ${_TARGET} != ${TARGET}
.for ARGUMENT in ${ARGS}
.if ${_TARGET} == ${ARGUMENT}
${_TARGET}_ARGS+= ${TARGET:C/^[^\-]*(\-|\$)//:S/,/ /g}
${TARGET}: ${_TARGET}
.endif
.endfor
${_TARGET}_ARG= ${${_TARGET}_ARGS:[0]}
.endif
.endfor

mfc:
.for MFC in ${mfc_ARGS}
@git checkout stable/${CORE_ABI} && \
git cherry-pick -x ${MFC} && \
git checkout master
.endfor

test: want-phpunit6-php${CORE_PHP}
@if [ "$$(${PKG} query %n-%v ${CORE_NAME})" != "${CORE_NAME}-${CORE_VERSION}" ]; then \
echo "Installed version does not match, expected ${CORE_NAME}-${CORE_VERSION}"; \
Expand Down

0 comments on commit d223693

Please sign in to comment.