Klaas Holwerda wrote:
> John Labenski wrote:
>
>>
>> I will start using SVN, I'm not sure why people like it so much, but
>> it seems like the way to go.
>
> And better first read this, before you do. Line endings!
>
> http://www.zope.org/DevHome/Subversion/SubversionConfigurationForLineEndings
>
And currently using this script to correct all files, and set the
property for files already in svn.
On Unix i run it, and i see them on windows appearing after an update,
so it seems to work.
But need to check a bit more, since files still are LF only on windows,
maybe a new checkout??
#!/bin/sh
# This script normalizes the newlines in all files in
# a directory and adds the svn:eol-style property
# Author: Ben Wolfe - 10/2008
# Made recursive Klaas Holwerda
path=`pwd`
# get a flat list of all files under the current directory
echo create filelist from $SOURCEDIR
find -name \.svn -prune -o -name *.bak -o -name .#* -o -type f -print >
filelist.txt
filelist=`cat filelist.txt`
for i in $filelist
do
#check subversion for this property
x=`svn propget svn:eol-style $i`
if [ ! -n "$x" ]
then
# get the file's extension
ext=`echo "$i" | awk -F . '{print $NF}'`
# This is an "if list contains" method for shell scripts
# check if ext is one of the text based extensions
case $ext in
java|jsp|css|js|xml|sql|txt|properties|tld|tag|html|htm|sh|h|cpp|lua|inl|bat|xrc|c|xpm|cvg|svg|drx|drw|rc)
#echo No svn:eol-style prop: $i . Adding now.
dos2unix -a $i
svn propset svn:eol-style "native" $i
;;
*)
echo not handled extension: $ext $i
;;
esac
fi
done
echo "done"
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users