2 ###############################################################################
3 # Copyright (c) 2014 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
11 # Alexandre Montplaisir - Initial API and implementation
12 ###############################################################################
14 # Synchronize the project settings for all plugins
15 # (by copying the contents of tmf.core's settings)
17 # Plugins from which we will copy the settings
18 RUNTIME_REFERENCE
="org.eclipse.tracecompass.tmf.core"
19 TEST_REFERENCE
="org.eclipse.tracecompass.tmf.core.tests"
21 RUNTIME_FILES
=$RUNTIME_REFERENCE/.settings
/*.prefs
22 TEST_FILES
=$TEST_REFERENCE/.settings
/*.prefs
25 for DIR
in *.core
*.ui org.eclipse.tracecompass.examples
27 # Skip non-directories
28 if [ ! -d $DIR ]; then
32 # Don't copy over the same files
33 if [ "$DIR" == "$RUNTIME_REFERENCE" ]; then
37 for FILE
in $RUNTIME_FILES
39 cp $FILE "$DIR/.settings/"
45 for DIR
in *.tests
*.alltests
47 # Skip non-directories
48 if [ ! -d $DIR ]; then
52 # Don't copy over the same files
53 if [ "$DIR" == "$TEST_REFERENCE" ]; then
57 for FILE
in $TEST_FILES
59 cp $FILE "$DIR/.settings/"