Changeset a35b458 in mainline for tools/travis.sh


Ignore:
Timestamp:
2018-03-02T20:10:49Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1380b7
Parents:
3061bc1
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
Message:

style: Remove trailing whitespace on _all_ lines, including empty ones, for particular file types.

Command used: tools/srepl '\s\+$' '' -- *.c *.h *.py *.sh *.s *.S *.ag

Currently, whitespace on empty lines is very inconsistent.
There are two basic choices: Either remove the whitespace, or keep empty lines
indented to the level of surrounding code. The former is AFAICT more common,
and also much easier to do automatically.

Alternatively, we could write script for automatic indentation, and use that
instead. However, if such a script exists, it's possible to use the indented
style locally, by having the editor apply relevant conversions on load/save,
without affecting remote repository. IMO, it makes more sense to adopt
the simpler rule.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/travis.sh

    r3061bc1 ra35b458  
    119119elif [ "$1" = "install" ]; then
    120120    set -x
    121    
     121
    122122    # Install dependencies
    123123    sudo apt-get -qq update || exit 1
     
    133133elif [ "$1" = "run" ]; then
    134134    set -x
    135    
     135
    136136    # Expected output filename (bootable image)
    137137    H_OUTPUT_FILENAME=`h_get_arch_config $H_ARCH_CONFIG_OUTPUT_FILENAME`
     
    150150    fi
    151151
    152        
     152
    153153    # Build it
    154154    make "PROFILE=$H_ARCH" HANDS_OFF=y || exit 1
    155155    test -s "$H_OUTPUT_FILENAME" || exit 1
    156    
     156
    157157    echo
    158158    echo "HelenOS for $H_ARCH built okay."
     
    165165        echo "Repository used is $H_HARBOURS_REPOSITORY."
    166166        echo
    167        
     167
    168168        H_HELENOS_HOME=`pwd`
    169169        cd "$HOME" || exit 1
     
    181181                echo "machine =" `echo "$H_ARCH" | cut -d/ -f 2`
    182182            ) >hsct.conf || exit 1
    183            
     183
    184184            # "$HOME/helenos-harbours/hsct.sh" init "$H_HELENOS_HOME" "$H_ARCH" build >/dev/null 2>/dev/null || exit 1
    185            
     185
    186186            "$HOME/helenos-harbours/hsct.sh" update || exit 1
    187187
     
    196196                    tail -n 100 "run-$HARBOUR.log"
    197197                fi
    198                
     198
    199199            done
    200            
     200
    201201            if [ -n "$FAILED_HARBOURS" ]; then
    202202                echo
Note: See TracChangeset for help on using the changeset viewer.