mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-11 18:25:40 +02:00
Bug 497512 - cdtdebug.sh "bashisms" not supported by non-bash shells
Also include the latest version of plugins when launching (tail vs head). This makes a difference when the plugins were updated. Change-Id: Id97c9247f0507e177592ca3631348bf8f7fd3dbf Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
This commit is contained in:
parent
1f89d55074
commit
30b3165eb3
1 changed files with 7 additions and 8 deletions
|
@ -83,18 +83,17 @@ ECLIPSE_HOME=$(cd "$SCRIPT_DIR/../../.." && pwd) # install.sh will modify this
|
||||||
ECLIPSE_EXEC="$ECLIPSE_HOME/eclipse"
|
ECLIPSE_EXEC="$ECLIPSE_HOME/eclipse"
|
||||||
|
|
||||||
# On Mac OS X, the application layout is a bit different (Eclipse.app)
|
# On Mac OS X, the application layout is a bit different (Eclipse.app)
|
||||||
if [[ $ECLIPSE_HOME == *MacOS ]]; then
|
case $ECLIPSE_HOME in
|
||||||
ECLIPSE_HOME="$ECLIPSE_HOME/../Eclipse"
|
*MacOS) ECLIPSE_HOME="$ECLIPSE_HOME/../Eclipse" ;;
|
||||||
fi
|
esac
|
||||||
|
|
||||||
PLUGIN_DIR="$ECLIPSE_HOME/plugins"
|
PLUGIN_DIR="$ECLIPSE_HOME/plugins"
|
||||||
|
OSGI_JAR=`find "$PLUGIN_DIR" -maxdepth 1 -name 'org.eclipse.osgi_*.jar' -not -name '*source*' -exec basename {} \; | tail -1`
|
||||||
OSGI_JAR=`find "$PLUGIN_DIR" -maxdepth 1 -name 'org.eclipse.osgi_*.jar' -not -name '*source*' -exec basename {} \; | head -1`
|
SWT_JAR=`find "$PLUGIN_DIR" -maxdepth 1 -name 'org.eclipse.swt.*.jar' -not -name '*source*' -exec basename {} \; | tail -1`
|
||||||
SWT_JAR=`find "$PLUGIN_DIR" -maxdepth 1 -name 'org.eclipse.swt.*.jar' -not -name '*source*' -exec basename {} \; | head -1`
|
|
||||||
SWT_PLUGIN=`echo $SWT_JAR | sed -e "s/_[0-9]*\..*.jar//"`
|
SWT_PLUGIN=`echo $SWT_JAR | sed -e "s/_[0-9]*\..*.jar//"`
|
||||||
FS_JAR=`find "$PLUGIN_DIR" -maxdepth 1 -name 'org.eclipse.core.filesystem.*.jar' -not -name '*source*' -exec basename {} \; | grep -v java7 | head -1`
|
FS_JAR=`find "$PLUGIN_DIR" -maxdepth 1 -name 'org.eclipse.core.filesystem.*.jar' -not -name '*source*' -exec basename {} \; | grep -v java7 | tail -1`
|
||||||
FS_PLUGIN=`echo $FS_JAR | sed -e "s/_[0-9]*\..*.jar//"`
|
FS_PLUGIN=`echo $FS_JAR | sed -e "s/_[0-9]*\..*.jar//"`
|
||||||
LINUX_JAR=`find "$PLUGIN_DIR" -maxdepth 1 -name 'org.eclipse.cdt.core.linux.*.jar' -not -name '*source*' -exec basename {} \; | head -1`
|
LINUX_JAR=`find "$PLUGIN_DIR" -maxdepth 1 -name 'org.eclipse.cdt.core.linux.*.jar' -not -name '*source*' -exec basename {} \; | tail -1`
|
||||||
LINUX_PLUGIN=`echo $LINUX_JAR | sed -e "s/_[0-9]*\..*.jar//"`
|
LINUX_PLUGIN=`echo $LINUX_JAR | sed -e "s/_[0-9]*\..*.jar//"`
|
||||||
|
|
||||||
# Run eclipse with the Stand-alone Debugger product specified
|
# Run eclipse with the Stand-alone Debugger product specified
|
||||||
|
|
Loading…
Add table
Reference in a new issue