Changeset 553:bc68e5fc3a22
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r550
|
r553
|
|
| 12 | 12 | # that we can see to not have it generate backups. What does one do |
| 13 | 13 | # 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. |
| 14 | 17 | for i in `find . -name '*.[chS]'`; do |
| 15 | 18 | sed -i ".re-bak" -E -e 's/ +$//g' $i |
| … |
… |
|
| 20 | 23 | for i in `find . -name '*.[chS]'`; do |
| 21 | 24 | echo $i |
| 22 | | sed -i -r -e 's/ +$//g' $i |
| | 25 | sed -i -r -e 's/[ \t]+$//g' $i |
| 23 | 26 | done |
| 24 | 27 | fi |