|
1 | 1 | #!/bin/bash -xe |
2 | 2 |
|
3 | 3 | #******************************************************************************* |
4 | | -# Copyright (c) 2025, 2025 IBM Hannes Wellmann and others. |
| 4 | +# Copyright (c) 2025, 2025 Hannes Wellmann and others. |
5 | 5 | # |
6 | 6 | # This program and the accompanying materials |
7 | 7 | # are made available under the terms of the Eclipse Public License 2.0 |
|
16 | 16 |
|
17 | 17 | # This script is called by the pipeline for preparing the next development cycle (this file's name is crucial!) |
18 | 18 | # and applies the changes required individually for SWT. |
| 19 | +# The calling pipeline also defines environment variables usable in this script. |
19 | 20 |
|
20 | 21 | make_common_mak='bundles/org.eclipse.swt/Eclipse SWT/common/library/make_common.mak' |
21 | 22 | source "${make_common_mak}" |
22 | 23 | new_min_ver=$((min_ver + 1)) |
23 | 24 |
|
24 | 25 | sed -i "${make_common_mak}" \ |
25 | 26 | --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" |
27 | 29 |
|
28 | 30 | sed -i 'bundles/org.eclipse.swt/Eclipse SWT PI/common/org/eclipse/swt/internal/Library.java' \ |
29 | 31 | --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" |
31 | 34 |
|
32 | 35 | echo "version ${maj_ver}.${new_min_ver}" > 'bundles/org.eclipse.swt/Eclipse SWT/common/version.txt' |
33 | 36 |
|
|
0 commit comments