Revision 72294488 compiler/GCC/gccsetup.sh
| compiler/GCC/gccsetup.sh | ||
|---|---|---|
| 434 | 434 |
tar -jxf "$armgcc_tarball" | tee -a $LOG_FILE |
| 435 | 435 |
local compilerdir=`tar --bzip2 -tf ${armgcc_tarball} | sed -e 's@/.*@@' | uniq`
|
| 436 | 436 |
|
| 437 |
# install gcc arm mebedded
|
|
| 437 |
# install gcc arm embedded
|
|
| 438 | 438 |
printLog "read installation directory from user\n" |
| 439 | 439 |
local installdir="" |
| 440 | 440 |
read -p "Installation directory: " -i ${installbasedir}/${compilerdir} -e installdir
|
| ... | ... | |
| 459 | 459 |
esac |
| 460 | 460 |
# make sure the whole ínstallation path exists |
| 461 | 461 |
else |
| 462 |
echo "$installdir path not exist" |
|
| 463 | 462 |
while [ ! -d $(dirname "$installdir") ]; do |
| 464 | 463 |
local dir=$(dirname "$installdir") |
| 465 | 464 |
while [ ! -d $(dirname "$dir") ]; do |
| ... | ... | |
| 483 | 482 |
ls ${installdir}/bin/ | xargs -i ln -sf ${installdir}/bin/{} ${linkdir}/{}
|
| 484 | 483 |
printInfo "default version set to $(arm-none-eabi-gcc -dumpversion)\n" |
| 485 | 484 |
|
| 486 |
read -p "bashrc stuff" |
|
| 487 |
|
|
| 488 | 485 |
# append the link directory to the PATH environment variable if required |
| 489 | 486 |
if [[ ! "$linkdir" = *"$PATH"* ]]; then |
| 490 | 487 |
local bashrc_file=${HOME}/.bashrc
|
Also available in: Unified diff