Browse Source

Some changes for travis

pull/313/head
jonathangreen 12 years ago
parent
commit
2e02f32402
  1. 14
      tests/scripts/line_endings.sh
  2. 0
      tests/scripts/travis_setup.sh

14
tests/scripts/line_endings.sh

@ -0,0 +1,14 @@
#!/bin/bash
RETURN=0
FILES=`find -L $1 -name "*.info" -o -name "*.txt" -o -name "*.md"`
echo "Testing for files with DOS line endings..."
for FILE in $FILES
do
file $FILE | grep CRLF
if [ $? == 0 ]
then
RETURN=1
fi
done
exit $RETURN

0
tests/travis_setup.sh → tests/scripts/travis_setup.sh

Loading…
Cancel
Save