Revision 1446566f compiler/GCC/gccsetup.sh
| compiler/GCC/gccsetup.sh | ||
|---|---|---|
| 633 | 633 |
fi |
| 634 | 634 |
printf "\n" |
| 635 | 635 |
|
| 636 |
# if --help or -h was specified, print the help text and exit |
|
| 637 |
if [[ $@ == *"--help"* || $@ == *"-h"* ]]; then |
|
| 638 |
printHelp |
|
| 639 |
printf "\n" |
|
| 640 |
quitScript |
|
| 641 |
fi |
|
| 642 |
|
|
| 636 | 643 |
# set log file if specified |
| 637 | 644 |
if [[ $@ == *"--log"* ]] || [[ $@ == *"--LOG"* ]]; then |
| 638 | 645 |
# get the parameter (file name) |
| ... | ... | |
| 656 | 663 |
printf "\n" |
| 657 | 664 |
fi |
| 658 | 665 |
fi |
| 659 |
|
|
| 660 | 666 |
# log script name |
| 661 | 667 |
printLog "this is $(realpath ${BASH_SOURCE[0]})\n"
|
| 662 | 668 |
|
| 663 |
# if --help or -h was specified, print the help text and exit |
|
| 664 |
if [[ $@ == *"--help"* || $@ == *"-h"* ]]; then |
|
| 665 |
printHelp |
|
| 666 |
printf "\n" |
|
| 667 |
quitScript |
|
| 668 |
fi |
|
| 669 |
|
|
| 670 | 669 |
# detect installed versions and inform user |
| 671 | 670 |
local installedversions=() |
| 672 | 671 |
local currentversion="" |
Also available in: Unified diff