From 2e02f32402c9356e63aedf82c363f42f65baf6a8 Mon Sep 17 00:00:00 2001 From: jonathangreen Date: Thu, 11 Apr 2013 14:52:06 -0300 Subject: [PATCH] Some changes for travis --- tests/scripts/line_endings.sh | 14 ++++++++++++++ tests/{ => scripts}/travis_setup.sh | 0 2 files changed, 14 insertions(+) create mode 100755 tests/scripts/line_endings.sh rename tests/{ => scripts}/travis_setup.sh (100%) diff --git a/tests/scripts/line_endings.sh b/tests/scripts/line_endings.sh new file mode 100755 index 00000000..b72dde22 --- /dev/null +++ b/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 diff --git a/tests/travis_setup.sh b/tests/scripts/travis_setup.sh similarity index 100% rename from tests/travis_setup.sh rename to tests/scripts/travis_setup.sh