Revisió 7f54166f
Afegit per Simó Albert i Beltran fa aproximadament 13 anys
| Makefile | ||
|---|---|---|
|
@exit 1
|
||
|
endef
|
||
|
|
||
|
define get_git_local_revision
|
||
|
git rev-parse origin/$1
|
||
|
endef
|
||
|
|
||
|
define get_git_remote_revision
|
||
|
git ls-remote origin $1 | awk 'NR==1{print $$1}'
|
||
|
endef
|
||
|
|
||
|
all: build
|
||
|
|
||
|
.checkout_qmp:
|
||
| ... | ... | |
|
$(if $(TARGET),$(call build_src))
|
||
|
$(call post_build)
|
||
|
|
||
|
is_up_to_date:
|
||
|
cd $(BUILD_DIR)/qmp && test "$$($(call get_git_local_revision,$(QMP_GIT_BRANCH)))" == "$$($(call get_git_remote_revision,$(QMP_GIT_BRANCH)))"
|
||
| nightlycompile.sh | ||
|---|---|---|
|
[ -z "$FORCE" ] && FORCE=0
|
||
|
|
||
|
[ $FORCE -eq 0 ] && {
|
||
|
if (cd build/qmp && git diff-index --quiet HEAD --)
|
||
|
if make is_up_to_date QMP_GIT_BRANCH=$BRANCH >& /dev/null
|
||
|
then
|
||
|
echo "Nothing to compile, qMp in last version"
|
||
|
exit 0
|
||
També disponible a: Unified diff
Add is_up_to_date rule in Makefile to check if qmp repository is up to date and to be used by nightlycompile.sh. Closes #238