Commit 2b0517af authored by Oliver Pinter's avatar Oliver Pinter
Browse files

HBSD: welcome 12-STABLE part 2. - update release scripts too



These script needs bigger refactors.
Signed-off-by: default avatarOliver Pinter <oliver.pinter@hardenedbsd.org>
parent 410ea292
......@@ -61,11 +61,17 @@ case "11-stable":
set _stag_template = "hardenedbsd-11-stable-"
set _vtag_template = "HardenedBSD-11-STABLE-v"
breaksw
case "12-stable":
set _lbranch = "hardened/12-stable/master"
set _rbranch = "hardenedbsd/hardened/12-stable/master"
set _stag_template = "hardenedbsd-12-stable-"
set _vtag_template = "HardenedBSD-12-STABLE-v"
breaksw
case "current":
set _lbranch = "hardened/current/master"
set _rbranch = "hardenedbsd/hardened/current/master"
set _stag_template = "hardenedbsd-master-"
set _vtag_template = "HardenedBSD-12-CURRENT-v"
set _vtag_template = "HardenedBSD-13-CURRENT-v"
breaksw
default:
echo "not supported branch"
......
......@@ -14,6 +14,7 @@ DATE=`date "+%Y%m%d%H%M%S"`
BRANCH_10="hardened/10-stable/master"
BRANCH_11="hardened/11-stable/master"
BRANCH_12="hardened/12-stable/master"
BRANCH_current="hardened/current/master"
RELESE_BASE_DIR="/usr/data/release"
......@@ -350,17 +351,20 @@ main()
old_revision_10=`get_revision origin/${BRANCH_10}`
old_revision_11=`get_revision origin/${BRANCH_11}`
old_revision_12=`get_revision origin/${BRANCH_12}`
old_revision_current=`get_revision origin/${BRANCH_current}`
git fetch origin
new_revision_10=`get_revision origin/${BRANCH_10}`
new_revision_11=`get_revision origin/${BRANCH_11}`
new_revision_12=`get_revision origin/${BRANCH_12}`
new_revision_current=`get_revision origin/${BRANCH_current}`
info "10-STABLE revisions: old ${old_revision_10} new ${new_revision_10}"
info "11-STABLE revisions: old ${old_revision_11} new ${new_revision_11}"
info "12-CURRENT revisions: old ${old_revision_current} new ${new_revision_current}"
info "12-STABLE revisions: old ${old_revision_12} new ${new_revision_12}"
info "13-CURRENT revisions: old ${old_revision_current} new ${new_revision_current}"
if [ "${old_revision_10}" != "${new_revision_10}" ] || [ "X${forced_build}" = "Xyes" ] || [ "X${forced_build}" = "X10-stable" ]
then
......@@ -390,6 +394,20 @@ main()
publish_release ${BRANCH_11} ${_build_status}
fi
if [ "${old_revision_12}" != "${new_revision_12}" ] || [ "X${forced_build}" = "Xyes" ] || [ "X${forced_build}" = "X12-stable" ]
then
_do_build=$(($_do_build+1))
prepare_branch ${BRANCH_12}
build_release ${BRANCH_12}
_build_status=$?
if [ ${_build_status} != 0 ]
then
_failed_builds=$(($_failed_builds+1))
fi
fixups ${BRANCH_12}
publish_release ${BRANCH_12} ${_build_status}
fi
if [ "${old_revision_current}" != "${new_revision_current}" ] || [ "X${forced_build}" = "Xyes" ] || [ "X${forced_build}" = "Xcurrent" ]
then
_do_build=$(($_do_build+1))
......@@ -473,17 +491,20 @@ else
11-stable)
forced_build="11-stable"
;;
12-stable)
forced_build="12-stable"
;;
current)
forced_build="current"
;;
*)
warn "valid targets: 10-stable, 11-stable, current"
warn "valid targets: 10-stable, 11-stable, 12-stable, current"
err "unknown forced build target: ${_branch}"
esac
info "forced build: ${forced_build}"
;;
*)
warn "usage: ${0} [forced_build|forced_build:10-stable|forced_build:11-stable|forced_build:current]"
warn "usage: ${0} [forced_build|forced_build:10-stable|forced_build:11-stable|forced_build:12-stable|forced_build:current]"
err "unknown parameter: ${3}"
;;
esac
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment