From: divverent Date: Wed, 24 Aug 2011 12:31:22 +0000 (+0000) Subject: add a script to automate svn:eol-style processing X-Git-Tag: xonotic-v0.5.0~26 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9ba7435d616384e4810255d3ef9a5509f6b94fbc;p=xonotic%2Fdarkplaces.git add a script to automate svn:eol-style processing git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11300 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=3a4b5e0d762fd64a38fa23ca8d84b5d2ceecb6b6 --- diff --git a/svn-eol-style-from-gitattributes.sh b/svn-eol-style-from-gitattributes.sh new file mode 100644 index 00000000..7c1085cd --- /dev/null +++ b/svn-eol-style-from-gitattributes.sh @@ -0,0 +1,22 @@ +for F in *; do + exec 3<.gitattributes + while read <&3 -r L S; do + if [ -z "${F##$L}" ]; then + s=$S + fi + done + case "$s" in + '-diff -crlf') + svn propdel svn:eol-style "$F" + ;; + '-crlf') + svn propdel svn:eol-style "$F" + ;; + 'crlf=input') + svn propset svn:eol-style native "$F" + ;; + *) + echo "UNKNOWN: $s" + ;; + esac +done