mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Set svn properties.
This commit is contained in:
0
OpenSim/Framework/Statistics/UserStatsReporter.cs
Executable file → Normal file
0
OpenSim/Framework/Statistics/UserStatsReporter.cs
Executable file → Normal file
0
Prebuild/scripts/MonoDevelop.sh
Normal file → Executable file
0
Prebuild/scripts/MonoDevelop.sh
Normal file → Executable file
0
Prebuild/scripts/autotools.sh
Normal file → Executable file
0
Prebuild/scripts/autotools.sh
Normal file → Executable file
0
Prebuild/scripts/nant.sh
Normal file → Executable file
0
Prebuild/scripts/nant.sh
Normal file → Executable file
@@ -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
|
||||
53
set-svn-properties.sh
Executable file
53
set-svn-properties.sh
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user