From 582d0a29d566b4d423e0e52a36af34a63f03f0bc Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Sat, 26 Jan 2008 04:26:12 +0000 Subject: Set svn properties. --- OpenSim/Framework/Statistics/UserStatsReporter.cs | 0 Prebuild/scripts/MonoDevelop.sh | 0 Prebuild/scripts/autotools.sh | 0 Prebuild/scripts/nant.sh | 0 set-eol-style.sh | 18 -------- set-svn-properties.sh | 53 +++++++++++++++++++++++ 6 files changed, 53 insertions(+), 18 deletions(-) mode change 100755 => 100644 OpenSim/Framework/Statistics/UserStatsReporter.cs mode change 100644 => 100755 Prebuild/scripts/MonoDevelop.sh mode change 100644 => 100755 Prebuild/scripts/autotools.sh mode change 100644 => 100755 Prebuild/scripts/nant.sh delete mode 100755 set-eol-style.sh create mode 100755 set-svn-properties.sh diff --git a/OpenSim/Framework/Statistics/UserStatsReporter.cs b/OpenSim/Framework/Statistics/UserStatsReporter.cs old mode 100755 new mode 100644 diff --git a/Prebuild/scripts/MonoDevelop.sh b/Prebuild/scripts/MonoDevelop.sh old mode 100644 new mode 100755 diff --git a/Prebuild/scripts/autotools.sh b/Prebuild/scripts/autotools.sh old mode 100644 new mode 100755 diff --git a/Prebuild/scripts/nant.sh b/Prebuild/scripts/nant.sh old mode 100644 new mode 100755 diff --git a/set-eol-style.sh b/set-eol-style.sh deleted file mode 100755 index 281769e..0000000 --- a/set-eol-style.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -set_eol_style() -{ - IFS=$'\n' - for file in `find . -iname \*\.$1`; do - eolstyle=`svn propget svn:eol-style $file` - if [ -z "${eolstyle}" -o "${eolstyle}" != "native" ]; then - svn propset svn:eol-style native $file - fi - done -} - -EXTENSIONS="cs ini example txt sql xml" - -for ext in ${EXTENSIONS}; do - set_eol_style $ext -done diff --git a/set-svn-properties.sh b/set-svn-properties.sh new file mode 100755 index 0000000..cfd3c93 --- /dev/null +++ b/set-svn-properties.sh @@ -0,0 +1,53 @@ +#!/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