Skip to content

Commit 2143c15

Browse files
committed
RelEng] Update copyright years in release preparation script
And extend the explanation. Follow-up on - #2460
1 parent 785d737 commit 2143c15

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

prepareNextDevCycle.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash -xe
22

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

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

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

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

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

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

0 commit comments

Comments
 (0)