release: Add make target to bump repos.

Add a target to bump all repos in one command.

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
Jose Carlos Venegas Munoz 2018-06-20 16:58:31 -05:00
parent e12f1df807
commit 4fef836ffd

30
release/Makefile Normal file
View File

@ -0,0 +1,30 @@
#
# Copyright (c) 2018 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
#
MK_DIR :=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
.PHONY: bump-kata-version
NEW_VERSION :=
# Run update-repository-version.sh
# $1 : repository to bump
define BUMP_REPO
@echo "Create PR for $1 version $(NEW_VERSION)"
@$(MK_DIR)/update-repository-version.sh -p $1 $(NEW_VERSION)
endef
bump-kata-version: $(REPOS)
ifeq ($(NEW_VERSION),)
$(error NEW_VERSION variable is empty, provide a version)
else
$(call BUMP_REPO,agent)
$(call BUMP_REPO,ksm-throttler)
$(call BUMP_REPO,osbuilder)
$(call BUMP_REPO,proxy)
$(call BUMP_REPO,runtime)
$(call BUMP_REPO,shim)
endif