From 1682c7ae3e13d436fe06202322a3428c35926756 Mon Sep 17 00:00:00 2001 From: Frank Park Date: Sun, 19 Oct 2014 01:54:39 -0400 Subject: [PATCH] Fixed a bug with shell script and added gitattributes to prevent non-binary pulls Cygwin was unable to filter the specs files using the blacklist due to the argument in find was -name *.txt instead of -name "*.txt" . Also, it is currently possible to pull under windows to result in CRLF line endings in scripts and other source files that destroy the build. .gitattributes were added to prevent non-binary pulls. Both issues are fixed with this pull request. --- .gitattributes | 1 + auto/bin/update_ext.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..2abb6ee --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* binary \ No newline at end of file diff --git a/auto/bin/update_ext.sh b/auto/bin/update_ext.sh index 9ba9c74..b27c8cf 100755 --- a/auto/bin/update_ext.sh +++ b/auto/bin/update_ext.sh @@ -19,7 +19,8 @@ if [ ! -d $1 ] ; then mkdir -p $1 # Parse each of the extensions in the registry - find $2 -name doc -type d -prune -o -name \*.txt -print | \ + find $2 -name doc -type d -prune -o -name \ + "*.txt" -print | \ grep -v -f $3 | sort | bin/parse_spec.pl $1 fi