forked from eclipse-platform/eclipse.platform.swt
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprepareNextDevCycle.sh
More file actions
executable file
·38 lines (30 loc) · 1.6 KB
/
prepareNextDevCycle.sh
File metadata and controls
executable file
·38 lines (30 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash -xe
#*******************************************************************************
# 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
# which accompanies this distribution, and is available at
# https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Hannes Wellmann - initial API and implementation
#*******************************************************************************
# 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|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|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'
git commit --all --message "Configure SWT build scripts for ${NEXT_RELEASE_VERSION}"