Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions prepareNextDevCycle.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -xe

#*******************************************************************************
# Copyright (c) 2025, 2025 IBM Hannes Wellmann and others.
# Copyright (c) 2025, 2025 Hannes Wellmann and others.
#
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License 2.0
Expand All @@ -16,18 +16,21 @@

# This script is called by the pipeline for preparing the next development cycle (this file's name is crucial!)
# and applies the changes required individually for SWT.
# The calling pipeline also defines environment variables usable in this script.

make_common_mak='bundles/org.eclipse.swt/Eclipse SWT/common/library/make_common.mak'
source "${make_common_mak}"
new_min_ver=$((min_ver + 1))

sed -i "${make_common_mak}" \
--expression "s|min_ver=${min_ver}|min_ver=${new_min_ver}|g" \
--expression "s|rev=[0-9]\+|rev=0|g"
--expression "s|rev=[0-9]\+|rev=0|g" \
--expression "s|2000, [0-9]\{4\}|2000, ${NEXT_RELEASE_YEAR}|g"

sed -i 'bundles/org.eclipse.swt/Eclipse SWT PI/common/org/eclipse/swt/internal/Library.java' \
--expression "s|MINOR_VERSION = ${min_ver};|MINOR_VERSION = ${new_min_ver};|g" \
--expression "s|REVISION = [0-9]\+;|REVISION = 0;|g"
--expression "s|REVISION = [0-9]\+;|REVISION = 0;|g"\
--expression "s|2000, [0-9]\{4\}|2000, ${NEXT_RELEASE_YEAR}|g"

echo "version ${maj_ver}.${new_min_ver}" > 'bundles/org.eclipse.swt/Eclipse SWT/common/version.txt'

Expand Down
Loading