Commit 8ab54562 authored by Thomas Schöpping's avatar Thomas Schöpping
Browse files

gccsetup.sh optimized

- script can now handle other formats than just .tar.bz2 (automatic detection tested with .tar.xz)
parent 1e318930
......@@ -239,8 +239,8 @@ function installNewVersion {
# extract tarball
printInfo "extracting ${armgcc_tarball}...\n"
tar -jxf "$armgcc_tarball" | tee -a $LOG_FILE
local compilerdir=`tar --bzip2 -tf ${armgcc_tarball} | sed -e 's@/.*@@' | uniq`
tar -axf "${armgcc_tarball}" | tee -a $LOG_FILE
local compilerdir=`tar -atf "${armgcc_tarball}" | sed -e 's@/.*@@' | uniq`
# install gcc arm embedded
printLog "read installation directory from user\n"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment