2 ###############################################################################
3 # Copyright (c) 2016 Ericsson
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Eclipse Public License v1.0
7 # which accompanies this distribution, and is available at
8 # http://www.eclipse.org/legal/epl-v10.html
9 ###############################################################################
11 # A simple script that sets the rcp to automatically update at startup by
12 # default. This sets the preference through plugin_customization.ini
13 # See https://bugs.eclipse.org/bugs/show_bug.cgi?id=499247
15 PATH_TO_PREFERENCE_FILE
="../../rcp/org.eclipse.tracecompass.rcp.branding/plugin_customization.ini"
17 OUTPUT
=$
(cat $PATH_TO_PREFERENCE_FILE |
grep org.eclipse.equinox.p2.ui.sdk.scheduler |
grep enabled
)
18 if [[ -z "$OUTPUT" ]];
20 echo "Setting Automatic update"
22 # check for updates every time Trace Compass starts. This should only be done in stable releases.
23 # https://bugs.eclipse.org/bugs/show_bug.cgi?id=499247
24 org.eclipse.equinox.p2.ui.sdk.scheduler/enabled=true" >> $PATH_TO_PREFERENCE_FILE
25 CHECK_OUTPUT
=$
(cat $PATH_TO_PREFERENCE_FILE |
grep org.eclipse.equinox.p2.ui.sdk.scheduler |
grep enabled
)
26 if [[ -z "$CHECK_OUTPUT" ]];
33 echo "Automatic update already set?"