Changeset 75b24cd in mainline


Ignore:
Timestamp:
2017-05-04T22:30:19Z (7 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b14d9f9
Parents:
d2bd00f0
Message:

cstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/toolchain.sh

    rd2bd00f0 r75b24cd  
    123123
    124124check_error() {
    125         if [ "$1" -ne "0" ]; then
     125        if [ "$1" -ne "0" ] ; then
    126126                echo
    127127                echo "Script failed: $2"
     
    235235        CHECKSUM="$3"
    236236       
    237         if [ ! -f "${FILE}" ]; then
     237        if [ ! -f "${FILE}" ] ; then
    238238                change_title "Downloading ${FILE}"
    239239                wget -c "${SOURCE}${FILE}"
     
    247247        FILE="$1"
    248248       
    249         if [ ! -f "${FILE}" ]; then
     249        if [ ! -f "${FILE}" ] ; then
    250250                echo
    251251                echo "File ${FILE} not found."
     
    258258        DIR="$1"
    259259       
    260         if [ -d "${DIR}" ]; then
     260        if [ -d "${DIR}" ] ; then
    261261                change_title "Removing ${DIR}"
    262262                echo " >>> Removing ${DIR}"
     
    408408build_target() {
    409409        PLATFORM="$1"
     410       
    410411        # This sets the *_TARGET variables
    411412        set_target_from_platform "$PLATFORM"
    412         if $USE_HELENOS_TARGET; then
     413        if $USE_HELENOS_TARGET ; then
    413414                TARGET="$HELENOS_TARGET"
    414415        else
     
    429430        fi
    430431       
    431         if $USE_HELENOS_TARGET; then
     432        if $USE_HELENOS_TARGET ; then
    432433                PREFIX="${CROSS_HELENOS_PREFIX}/${PLATFORM}"
    433434        else
     
    458459       
    459460        echo ">>> Applying patches"
    460         for p in $BINUTILS_PATCHES; do
     461        for p in $BINUTILS_PATCHES ; do
    461462                patch_sources "${SRCDIR}/${p}" 0 "binutils"
    462463        done
    463         for p in $GCC_PATCHES; do
     464        for p in $GCC_PATCHES ; do
    464465                patch_sources "${SRCDIR}/${p}" 0 "GCC"
    465466        done
    466         for p in $GDB_PATCHES; do
     467        for p in $GDB_PATCHES ; do
    467468                patch_sources "${SRCDIR}/${p}" 0 "GDB"
    468469        done
     
    484485       
    485486        change_title "binutils: install (${PLATFORM})"
    486         if $REAL_INSTALL; then
     487        if $REAL_INSTALL ; then
    487488                make install
    488489        else
     
    511512       
    512513        change_title "GCC: install (${PLATFORM})"
    513         if $REAL_INSTALL; then
     514        if $REAL_INSTALL ; then
    514515                PATH="${PATH}:${PREFIX}/bin" make install-gcc
    515516        else
     
    556557}
    557558
    558 while [ "$#" -gt 1 ]; do
     559while [ "$#" -gt 1 ] ; do
    559560        case "$1" in
    560561                --no-install)
     
    572573done
    573574
    574 if [ "$#" -lt "1" ]; then
     575if [ "$#" -lt "1" ] ; then
    575576        show_usage
    576577fi
Note: See TracChangeset for help on using the changeset viewer.