Skip to content

Commit

Permalink
Framework: useful dev glue from core
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jan 8, 2021
1 parent b2d5d68 commit e6619ce
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Mk/defaults.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2016-2020 Franco Fichtner <[email protected]>
# Copyright (c) 2016-2021 Franco Fichtner <[email protected]>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -88,10 +88,15 @@ ${_TARGET}_ARG= ${${_TARGET}_ARGS:[0]}
.endif
.endfor

diff:
ensure-stable:
@if ! git show-ref --verify --quiet refs/heads/stable/${PLUGIN_ABI}; then \
git update-ref refs/heads/stable/${PLUGIN_ABI} refs/remotes/origin/stable/${PLUGIN_ABI}; \
fi

diff: ensure-stable
@git diff --stat -p stable/${PLUGIN_ABI} ${.CURDIR}/${diff_ARGS:[1]}

mfc:
mfc: ensure-stable
.for MFC in ${mfc_ARGS}
.if exists(${MFC})
@git diff --stat -p stable/${PLUGIN_ABI} ${.CURDIR}/${MFC} > /tmp/mfc.diff
Expand All @@ -107,3 +112,9 @@ mfc:
.endif
@git checkout master
.endfor

stable:
@git checkout stable/${PLUGIN_ABI}

master:
@git checkout master

0 comments on commit e6619ce

Please sign in to comment.