mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Bug 438782 - Add check in Standalone Debugger install script
- add a check in the Stand-alone Debugger install script to catch the situation where the eclipse binary is not found in the expected directory relative to this script Change-Id: I9f179c80085e5a80a5f4d7fafe1636a7cec38021 Reviewed-on: https://git.eclipse.org/r/29568 Tested-by: Hudson CI Reviewed-by: Jeff Johnston <jjohnstn@redhat.com> Tested-by: Jeff Johnston <jjohnstn@redhat.com>
This commit is contained in:
parent
b9f7061070
commit
1d05fa900e
1 changed files with 19 additions and 0 deletions
|
@ -9,6 +9,25 @@
|
|||
# Contributors:
|
||||
# Red Hat Inc. - initial API and implementation
|
||||
###############################################################################
|
||||
olddir=`pwd`
|
||||
cd ../..
|
||||
PLUGINS_DIR=`pwd`
|
||||
# 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.
|
||||
if [ ! -f ../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
|
||||
fi
|
||||
cd $olddir
|
||||
if [ ! -d $HOME/cdtdebugger ]; then
|
||||
mkdir -p $HOME/cdtdebugger
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue