mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 22:22:11 +02:00

The maintenance of having a streamlined standalone debugger that starts as fast as possible is no longer possible. See for example #591 - therefore when using standalone debugger, use the same sets of plug-ins/features as the product it is installed in uses. The side effect is that the standalone debugger in this use case will start slower and extra "stuff" will be present in this UI. For people just building the standalone debugger, provide a minimum feature set. This will be many more bundles than before, but should still provide a reasonably small set that starts well. This simplification also includes removing the the duplicates set of CDT docs (debug/org.eclipse.cdt.debug.application.doc). These provided a simplified version of CDT's documentation targetted at just standalone debugger. However there are a few problems related to this duplication: - The two sets of docs were not kept in sync - The standalone docs appear in the online help, leading to duplicated entries - With the config.ini changes above, there is no way to exclude the main docs in the standalone case, so remove the duplicate A number of directly related clean-ups are included too: - Remove the `ConfigGenerator.java` that stopped being referenced in PR #761 - Complete the removal of `build-standalone-debugger-rcp` profile that was started in #761. There is a small drawback to not having this profile, the standalone debugger is very slow to build compared to the rest of CDT. If this becomes a problem, restoring this profile along with the changes made in #761 is reasonable. - bring debug.product's licenses up to date - modernize command line args to eclipse when using debug.product Fixes #781
55 lines
2.1 KiB
Bash
Executable file
55 lines
2.1 KiB
Bash
Executable file
#!/bin/bash
|
|
###############################################################################
|
|
# Copyright (c) 2014, 2024 Red Hat, Inc. and others
|
|
#
|
|
# This program and the accompanying materials
|
|
# are made available under the terms of the Eclipse Public License 2.0
|
|
# which accompanies this distribution, and is available at
|
|
# https://www.eclipse.org/legal/epl-2.0/
|
|
#
|
|
# SPDX-License-Identifier: EPL-2.0
|
|
#
|
|
# Contributors:
|
|
# Red Hat Inc. - initial API and implementation
|
|
###############################################################################
|
|
|
|
# Verify that the install script is being run from a plug-ins folder of a
|
|
# downloaded Eclipse and not in a local user .eclipse folder.
|
|
|
|
SCRIPT_DIR=`dirname $0`
|
|
|
|
IS_MAC=0
|
|
|
|
if [ ! -f "$SCRIPT_DIR/../../../eclipse" ]; then
|
|
if [ ! -f "$SCRIPT_DIR/../../../../MacOS/eclipse" ]; then
|
|
echo "$0: error: eclipse executable not found in expected location"
|
|
echo " "
|
|
echo "This can occur if you are running this script from your local .eclipse directory"
|
|
echo "which would mean you are running a shared instance of the Eclipse platform for"
|
|
echo "your distro and have installed the Stand-alone Debugger from an eclipse.org"
|
|
echo "download repo. Downloading the Stand-alone Debugger feature on top of a distro"
|
|
echo "version of Eclipse Debugger is not supported. If you are using a distro version"
|
|
echo "of the Eclipse platform, you should not use this script. Instead, install the"
|
|
echo "corresponding Eclipse CDT package for your distro (e.g. eclipse-cdt package)"
|
|
echo "which will install the Stand-alone Debugger for you."
|
|
exit 1
|
|
else
|
|
IS_MAC=1
|
|
fi
|
|
fi
|
|
|
|
if [ ! -d "$HOME/cdtdebugger" ]; then
|
|
mkdir -p "$HOME/cdtdebugger"
|
|
fi
|
|
cp "$SCRIPT_DIR/cdtdebug.sh" "$HOME/cdtdebugger"
|
|
chmod +x "$HOME/cdtdebugger/cdtdebug.sh"
|
|
|
|
if [ $IS_MAC -eq 0 ]; then
|
|
ECLIPSE_HOME=$(cd "$SCRIPT_DIR/../../.." && pwd)
|
|
else
|
|
ECLIPSE_HOME=$(cd "$SCRIPT_DIR/../../../../MacOS" && pwd)
|
|
fi
|
|
|
|
# Replace the entire line with tag @#@# by the actual location of the eclipse installation
|
|
sed -i -e "s,^.*@#@#.*$,ECLIPSE_HOME=$ECLIPSE_HOME," "$HOME/cdtdebugger/cdtdebug.sh"
|
|
echo "Installation complete"
|