forked from turesheim/eclipse.platform.releng.aggregator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
patchSWT.sh
executable file
·47 lines (42 loc) · 1.18 KB
/
patchSWT.sh
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
39
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
#*******************************************************************************
# Copyright (c) 2016 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# David Williams - initial API and implementation
#*******************************************************************************
# swt fix, instead of Tycho revert
pushd $aggDir/eclipse.platform.swt
git reset --hard
git revert --no-edit 2015cd98ef5b2c9ff44d19f27b2e4161df8682ce
RC=$?
popd
if [[ $RC != 0 ]]
then
echo "Error revert 1 in SWT Patch"
exit $RC
fi
pushd $aggDir/eclipse.platform.swt.binaries
git reset --hard
git revert --no-edit 9c21286548a1eeb87aa8e958c2df8e8747f0167b
RC=$?
popd
if [[ $RC != 0 ]]
then
echo "Error revert 2 in SWT Patch"
exit $RC
fi
pushd $aggDir/eclipse.platform.swt
patch -p0 < ${SCRIPT_PATH}/patches/Bug-461427-Tons-of-compile-errors-in-test-build-in-SWT.patch
RC=$?
popd
if [[ $RC != 0 ]]
then
echo "Error patch in SWT Patch"
exit $RC
fi
exit 0