lttng.ui.test: Enable SymbolMap test
[deliverable/tracecompass.git] / releng / scripts / set_automatic_updates.sh
CommitLineData
db0d01e9
MAL
1#!/bin/bash
2###############################################################################
3# Copyright (c) 2016 Ericsson
4#
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###############################################################################
10
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
14
ccefec92 15PATH_TO_PREFERENCE_FILE="../../rcp/org.eclipse.tracecompass.rcp.branding/plugin_customization.ini"
db0d01e9
MAL
16
17OUTPUT=$(cat $PATH_TO_PREFERENCE_FILE | grep org.eclipse.equinox.p2.ui.sdk.scheduler | grep enabled)
18if [[ -z "$OUTPUT" ]];
19then
20 echo "Setting Automatic update"
21 echo "
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
24org.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" ]];
27 then
28 echo "Failed!"
29 else
30 echo "Success!"
31 fi
32else
33 echo "Automatic update already set?"
34fi
35
This page took 0.050763 seconds and 5 git commands to generate.