• nbarth@chromium.org's avatar
    Fix trailing whitespace in scripts and misc. files · 97b1ded0
    nbarth@chromium.org authored
    Followup to removing trailing whitespace in .cpp, .h, and .idl files.
    
    Fixes the remaining obvious code files:
    .cc
    .gyp
    .gypi
    
    .pl  Perl
    .pm  Perl Module
    .py  Python
    .sh  Shell
    ...and the scripts in:
    Tools/Scripts
    
    Skips these, due to also having eol issues:
    .c   C (1 file)
    .rb  Ruby (2 files)
    
    
    Commands used:
    sed -i -E 's/\s+$//' $(git ls-files -- '*.cc' '*.gyp' '*.gypi'
    '*.pl' '*.pm' '*.py' '*.sh')
    cd Tools/Scripts && grep -l -E '\s+$' * | xargs sed -i -E 's/\s+$//'
    
    3 manual changes:
    * remove trailing newline in Tools/Scripts/webkitpy/tool/steps/runtests.py
    * *don't* fix trailing whitespace in
    Tools/Scripts/webkitpy/style/checkers/python_unittest_input.py
    ...as this is intentional, as a test for the style checker.
    * *don't* fix trailing whitespace in
    Tools/Scripts/webkitpy/common/checkout/diff_test_data.py
    ...as this includes a literal diff, and unified diff uses ' ' for an unchanged blank line.
    
    The .c and .rb files with eol issues (skipped for this CL, since probably need a svn propset) are:
    ManualTests/NPN_Invoke/main.c
    Tools/Scripts/webkitruby/PrettyPatch/PrettyPatch.rb
    Tools/Scripts/webkitruby/PrettyPatch/diff.rb
    
    
    Followup to:
    Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files
    https://codereview.chromium.org/20294002/
    
    TBR=ojan, abarth
    
    Review URL: https://chromiumcodereview.appspot.com/20652002
    
    git-svn-id: svn://svn.chromium.org/blink/trunk@154989 bbb929c8-8fbe-4397-9dbb-9b2b20218538
    97b1ded0
sync-master-with-upstream 2.14 KB