From 20215c3d30fb55bf232bff1b3d6652d82e00b798 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Sat, 26 Jan 2008 10:34:49 +0000 Subject: Rewrote svn properties handling script in python. Added more file types. --- set-svn-properties.sh | 53 --------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100755 set-svn-properties.sh (limited to 'set-svn-properties.sh') diff --git a/set-svn-properties.sh b/set-svn-properties.sh deleted file mode 100755 index cfd3c93..0000000 --- a/set-svn-properties.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -set_eol_style() -{ - IFS=$'\n' - for file in `find . -iname \*\.$1`; do - prop=`svn propget svn:eol-style $file` - if [ -z "${prop}" -o "${prop}" != "native" ]; then - svn propset svn:eol-style native $file - fi - done - IFS=$' \t\n' -} - -remove_executable() -{ - IFS=$'\n' - for file in `find . -iname \*\.$1`; do - prop=`svn propget svn:executable $file` - if [ -n "${prop}" ]; then - svn propdel svn:executable $file - fi - done - IFS=$' \t\n' -} - -set_executable() -{ - IFS=$'\n' - for file in `find . -iname \*\.$1`; do - prop=`svn propget svn:executable $file` - if [ -z "${prop}" ]; then - svn propset svn:executable "*" $file - fi - done - IFS=$' \t\n' -} - -EOL_EXTENSIONS="cs ini example txt sql xml sh" -NO_EXE_EXTENSIONS="cs ini example txt sql xml" -EXE_EXTENSIONS="exe sh" - -for ext in ${EOL_EXTENSIONS}; do - set_eol_style $ext -done - -for ext in ${NO_EXE_EXTENSIONS}; do - remove_executable $ext -done - -for ext in ${EXE_EXTENSIONS}; do - set_executable $ext -done -- cgit v1.1