Browse Source

script to auto set EOL style on a SVN working copy

David Yurkiewicz 6 years ago
parent
commit
f3469deea7
1 changed files with 15 additions and 0 deletions
  1. 15 0
      linux/SVN_setEOLstyle.sh

+ 15 - 0
linux/SVN_setEOLstyle.sh

@@ -0,0 +1,15 @@
1
+#! /bin/bash/
2
+################################
3
+# SVN: Apply Native EOL Style
4
+# by David Yurkiewicz
5
+# WWW.D87STUDIOS.COM
6
+# USAGE: ./SVN_setEOLstyle.sh
7
+# The EOL Style should be set to NATIVE. This is done by the following command:
8
+# svn ps svn:
9
+# This script will set the EOL Style excluding the .svn directory
10
+
11
+find . -type f -not -wholename '*.svn*' -exec svn ps svn:eol-style native {} \; 2>>  /tmp/EOL-report.log
12
+
13
+cat -e /tmp/EOL-report.log | mail user@company.com
14
+
15
+