Changeset 553:bc68e5fc3a22

Show
Ignore:
Timestamp:
05/31/08 23:58:31 (7 months ago)
Author:
David Anderson <dave@…>
Branch:
default
Message:

Make the whitespace stripper script also remove tabs.

Only the GNU sed variant does this, since OSX sed seems to exhibit
more signs of brain damage.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • nxos/scripts/strip-trailing-whitespaces.sh

    r550 r553  
    1212  # that we can see to not have it generate backups. What does one do 
    1313  # then? Give it the finger. 
     14  # 
     15  # TODO: OSX sed apparently fails to catch tabs with the expression 
     16  # that works with GNU sed. Figure out a way around that. 
    1417  for i in `find . -name '*.[chS]'`; do 
    1518    sed -i ".re-bak" -E -e 's/ +$//g' $i 
     
    2023  for i in `find . -name '*.[chS]'`; do 
    2124    echo $i 
    22     sed -i -r -e 's/ +$//g' $i 
     25    sed -i -r -e 's/[ \t]+$//g' $i 
    2326  done 
    2427fi