Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 19 lines (17 sloc) 0.377 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#/bin/bash

CPPFILES=`find . -type f -name '*.cpp'`
HFILES=`find . -type f -name '*.h'`

for FILE in $HFILES
do
    if [ -n "$(sed -n "\$p" $FILE)" ]; then
        echo "Adding newline to $FILE"
        echo "" >> $FILE
    fi
done
for FILE in $CPPFILES
do
    if [ -n "$(sed -n "\$p" $FILE)" ]; then
        echo "Adding newline to $FILE"
        echo "" >> $FILE
    fi
done
Something went wrong with that request. Please try again.