1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00
Find a file
Simon Marchi 184747164d Various enhancements to download-build-gdb.sh
I ran shellcheck [1] on the script and it found various minor things to
improve.

 - Use $(...) instead of `...` to run commands in a subshell.
 - Wrap all variables in quotes, in case there are spaces.

At the same time, I noticed a few other things:

 - Use "#!/usr/bin/env bash" instead of "#!/bin/bash", in case the user
   uses a bash not at /bin/bash.
 - Use "set -o errexit" instead of "set -e" for better readability.
 - Use "set -o nounset" to generate errors if trying to read unset
   variables.
 - Pass CXXFLAGS in addition to CFLAGS, since GDB is now in C++.
 - Use ${CFLAGS:-} instead of ${CFLAGS}, in case CFLAGS is not set
   (because of "set -o nounset").
 - Don't check for result of getopt.  If it fails, the script ends
   immediatly due to errexit.

[1] http://www.shellcheck.net/

Change-Id: If73f3510e46ca80d542d47c29c55b48b8b0bc697
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2017-03-23 13:33:45 -04:00
.mvn releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
build Remove unneeded casts. 2017-03-23 04:35:03 -04:00
codan releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
core Remove unneeded casts. 2017-03-23 04:35:03 -04:00
cross Bug 511801 - Remote launch: validate that the remote exec file is absolute 2017-03-15 16:30:35 -04:00
debug Bug 480047 - Include apache http client libraries for use with p2 transport 2017-03-19 22:36:22 -04:00
doc Add missing reference to GDB Debugging Preferences (for DSF preferences) 2016-12-05 21:47:25 +00:00
dsf Generify ListenerList. 2017-03-23 09:25:24 +02:00
dsf-gdb Various enhancements to download-build-gdb.sh 2017-03-23 13:33:45 -04:00
jtag releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
launch Fixed broken compilation. 2017-03-08 02:01:43 -04:00
llvm lldb: Remove -break-insert hack for absolute path for lldb 4.0 2017-03-20 01:56:50 -04:00
lrparser releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
memory releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
native releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
qt Bug 512262 - Remove the unnecessary ICPPEvaluationOwner interface 2017-02-17 01:14:35 -05:00
releng Adjust path exclusion when deleting repo so that it doesn't delete rcp 2017-03-19 19:48:13 -04:00
remote releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
testsrunner releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
toolchains/arduino releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
upc releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
util releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
visualizer releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
windows releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
xlc releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
.gitignore Ignore NFS-created files. 2012-11-08 13:34:54 -08:00
pom.xml Update Maven build machinery. 2017-02-14 10:54:17 +02:00