|
|
9d34dde |
diff -up ./debug/org.eclipse.cdt.debug.application/scripts/cdtdebug.sh.fix ./debug/org.eclipse.cdt.debug.application/scripts/cdtdebug.sh
|
|
|
1c58f5f |
--- ./debug/org.eclipse.cdt.debug.application/scripts/cdtdebug.sh.fix 2016-11-27 19:02:54.000000000 -0500
|
|
|
1c58f5f |
+++ ./debug/org.eclipse.cdt.debug.application/scripts/cdtdebug.sh 2017-01-16 14:43:04.080569995 -0500
|
|
|
1c58f5f |
@@ -74,12 +74,15 @@ while test $# -gt 0 ; do
|
|
|
176ddf9 |
done
|
|
|
176ddf9 |
|
|
|
176ddf9 |
# Make sure local directory exists and has contents initialized
|
|
|
176ddf9 |
-if [ ! -d "$HOME/cdtdebugger" ]; then
|
|
|
176ddf9 |
- /bin/sh "$SCRIPT_DIR/install.sh" || exit
|
|
|
176ddf9 |
+if [ $0 -nt "$HOME/fcdtdebugger" ]; then
|
|
|
43d9a9f |
+rm -rf $HOME/fcdtdebugger >/dev/null
|
|
|
43d9a9f |
+mkdir -p $HOME/fcdtdebugger
|
|
|
43d9a9f |
+cp config.ini $HOME/fcdtdebugger
|
|
|
43d9a9f |
+cp dev.properties $HOME/fcdtdebugger
|
|
|
48ea26a |
fi
|
|
|
176ddf9 |
|
|
|
176ddf9 |
# Calculate platform-specific jar file names
|
|
|
176ddf9 |
-ECLIPSE_HOME=$(cd "$SCRIPT_DIR/../../.." && pwd) # install.sh will modify this line. DO NOT REMOVE THE FOLLOWING MARKER: @#@#
|
|
|
b22f451 |
+ECLIPSE_HOME=$(dirname $(readlink -f $(which eclipse)))
|
|
|
b22f451 |
ECLIPSE_EXEC="$ECLIPSE_HOME/eclipse"
|
|
|
b22f451 |
|
|
|
b22f451 |
# On Mac OS X, the application layout is a bit different (Eclipse.app)
|
|
|
1c58f5f |
@@ -88,18 +91,23 @@ case $ECLIPSE_HOME in
|
|
|
1c58f5f |
esac
|
|
|
b22f451 |
|
|
|
176ddf9 |
PLUGIN_DIR="$ECLIPSE_HOME/plugins"
|
|
|
2b00c3b |
+DROPLET_NOARCH="$(cd $ECLIPSE_HOME/../../share/eclipse/droplets && pwd)"
|
|
|
2b00c3b |
+DROPLET_ARCHFUL="$ECLIPSE_HOME/droplets"
|
|
|
1c58f5f |
OSGI_JAR=`find "$PLUGIN_DIR" -maxdepth 1 -name 'org.eclipse.osgi_*.jar' -not -name '*source*' -exec basename {} \; | tail -1`
|
|
|
1c58f5f |
-SWT_JAR=`find "$PLUGIN_DIR" -maxdepth 1 -name 'org.eclipse.swt.*.jar' -not -name '*source*' -exec basename {} \; | tail -1`
|
|
|
2b00c3b |
+LAUNCHBAR_CORE_JAR=`find $DROPLET_NOARCH -maxdepth 5 -name 'org.eclipse.launchbar.core_*.jar' -not -name '*source*'`
|
|
|
2b00c3b |
+UI_VIEWS_LOG_JAR=`find $DROPLET_NOARCH -maxdepth 5 -name 'org.eclipse.ui.views.log_*.jar' -not -name '*source*'`
|
|
|
b22f451 |
+SWT_JAR=`find "$PLUGIN_DIR" -maxdepth 1 -name 'org.eclipse.swt.*' -not -name '*source*' -exec basename {} \; | head -1`
|
|
|
48ea26a |
SWT_PLUGIN=`echo $SWT_JAR | sed -e "s/_[0-9]*\..*.jar//"`
|
|
|
1c58f5f |
-FS_JAR=`find "$PLUGIN_DIR" -maxdepth 1 -name 'org.eclipse.core.filesystem.*.jar' -not -name '*source*' -exec basename {} \; | grep -v java7 | tail -1`
|
|
|
2b00c3b |
+FS_JAR=`find "$PLUGIN_DIR" -maxdepth 1 -name 'org.eclipse.core.filesystem.*.jar' -not -name '*source*' -exec basename {} \; | head -1`
|
|
|
48ea26a |
FS_PLUGIN=`echo $FS_JAR | sed -e "s/_[0-9]*\..*.jar//"`
|
|
|
1c58f5f |
-LINUX_JAR=`find "$PLUGIN_DIR" -maxdepth 1 -name 'org.eclipse.cdt.core.linux.*.jar' -not -name '*source*' -exec basename {} \; | tail -1`
|
|
|
2b00c3b |
+LINUX_JAR=`find $DROPLET_ARCHFUL -maxdepth 5 -name 'org.eclipse.cdt.core.linux.*.jar' -not -name '*source*' -exec basename {} \; | head -1`
|
|
|
48ea26a |
LINUX_PLUGIN=`echo $LINUX_JAR | sed -e "s/_[0-9]*\..*.jar//"`
|
|
|
43d9a9f |
|
|
|
176ddf9 |
# Run eclipse with the Stand-alone Debugger product specified
|
|
|
b22f451 |
"$ECLIPSE_EXEC" -clean -product org.eclipse.cdt.debug.application.product \
|
|
|
176ddf9 |
- -data "$HOME/workspace-cdtdebug" -configuration file\:"$HOME/cdtdebugger" \
|
|
|
176ddf9 |
- -dev file\:"$HOME/cdtdebugger/dev.properties" $options \
|
|
|
176ddf9 |
+ -application org.eclipse.cdt.debug.application.app \
|
|
|
176ddf9 |
+ -data "$HOME/workspace-fcdtdebug" -configuration file\:"$HOME/fcdtdebugger" \
|
|
|
176ddf9 |
-vmargs -Dosgi.jar=$OSGI_JAR -Dswt.plugin=$SWT_PLUGIN -Dfs.plugin=$FS_PLUGIN \
|
|
|
9d34dde |
+ -Dlaunchbar.core=$LAUNCHBAR_CORE_JAR -Dui.views.log=$UI_VIEWS_LOG_JAR \
|
|
|
176ddf9 |
-Dlinux.plugin=$LINUX_PLUGIN -Declipse.home="$ECLIPSE_HOME"
|
|
|
176ddf9 |
|