Skip to content

Commit 6b5b54a

Browse files
committed
[RelEng] Add individual release preparation script for SWT
It will be called by the pipeline to prepare a new development cycle and automates the configuration of SWT build scripts for the new cycle.
1 parent d5dc661 commit 6b5b54a

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

prepareNextDevCycle.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash -xe
2+
3+
#*******************************************************************************
4+
# Copyright (c) 2025, 2025 IBM Hannes Wellmann and others.
5+
#
6+
# This program and the accompanying materials
7+
# are made available under the terms of the Eclipse Public License 2.0
8+
# which accompanies this distribution, and is available at
9+
# https://www.eclipse.org/legal/epl-2.0/
10+
#
11+
# SPDX-License-Identifier: EPL-2.0
12+
#
13+
# Contributors:
14+
# Hannes Wellmann - initial API and implementation
15+
#*******************************************************************************
16+
17+
# This script is called by the pipeline for preparing the next development cycle (this file's name is crucial!)
18+
# and applies the changes required individually for SWT.
19+
20+
make_common_mak='bundles/org.eclipse.swt/Eclipse SWT/common/library/make_common.mak'
21+
source "${make_common_mak}"
22+
new_min_ver=$((min_ver + 1))
23+
24+
sed -i "${make_common_mak}" \
25+
--expression "s|min_ver=${min_ver}|min_ver=${new_min_ver}|g" \
26+
--expression "s|rev=[0-9]\+|rev=0|g"
27+
28+
sed -i 'bundles/org.eclipse.swt/Eclipse SWT PI/common/org/eclipse/swt/internal/Library.java' \
29+
--expression "s|MINOR_VERSION = ${min_ver};|MINOR_VERSION = ${new_min_ver};|g" \
30+
--expression "s|REVISION = [0-9]\+;|REVISION = 0;|g"
31+
32+
echo "version ${maj_ver}.${new_min_ver}" > 'bundles/org.eclipse.swt/Eclipse SWT/common/version.txt'
33+
34+
35+
git commit --all --message "Configure SWT build scripts for ${NEXT_RELEASE_VERSION}"

0 commit comments

Comments
 (0)