Fix bug into script that fix CRLF into LF

This commit is contained in:
Laurent Destailleur 2013-06-12 11:59:55 +02:00
parent 0b35217481
commit a50cd7b698
182 changed files with 17203 additions and 17203 deletions

View File

@ -16,13 +16,13 @@ fi
# To detec # To detec
if [ "x$1" = "xlist" ] if [ "x$1" = "xlist" ]
then then
find . -iname "*.php" -o -iname "*.sh" -o -iname "*.pl" -o -iname "*.lang" -o -iname "*.txt" -exec file "{}" + | grep -v 'htdocs\/includes' | grep CRLF find . \( -iname "*.php" -o -iname "*.sh" -o -iname "*.pl" -o -iname "*.lang" -o -iname "*.txt" \) -exec file "{}" + | grep -v 'htdocs\/includes' | grep CRLF
fi fi
# To convert # To convert
if [ "x$1" = "xfix" ] if [ "x$1" = "xfix" ]
then then
for fic in `find . -iname "*.php" -o -iname "*.sh" -o -iname "*.pl" -o -iname "*.lang" -o -iname "*.txt" -exec file "{}" + | grep -v 'htdocs\/includes' | grep CRLF | awk -F':' '{ print $1 }' ` for fic in `find . \( -iname "*.php" -o -iname "*.sh" -o -iname "*.pl" -o -iname "*.lang" -o -iname "*.txt" \) -exec file "{}" + | grep -v 'htdocs\/includes' | grep CRLF | awk -F':' '{ print $1 }' `
do do
echo "Fix file $fic" echo "Fix file $fic"
dos2unix $fic dos2unix $fic

View File

@ -18,7 +18,7 @@ fi
# To detec # To detec
if [ "x$1" = "xlist" ] if [ "x$1" = "xlist" ]
then then
#find . -iname '*.php' -print0 -o -iname '*.sh' -print0 -o -iname '*.pl' -print0 -o -iname '*.lang' -print0 -o -iname '*.txt' -print0 | xargs -0 awk '/^\xEF\xBB\xBF/ {print FILENAME} {nextfile}' #find . \( -iname '*.php' -print0 -o -iname '*.sh' -print0 -o -iname '*.pl' -print0 -o -iname '*.lang' -print0 -o -iname '*.txt' \) -print0 | xargs -0 awk '/^\xEF\xBB\xBF/ {print FILENAME} {nextfile}'
grep -rlIZ --include='*.php' --include='*.sh' --include='*.pl' --include='*.lang' --include='*.txt' --exclude-dir='.git' --exclude-dir='includes' --exclude-dir='custom' . . | xargs -0 awk '/^\xEF\xBB\xBF/ {print FILENAME} {nextfile}' grep -rlIZ --include='*.php' --include='*.sh' --include='*.pl' --include='*.lang' --include='*.txt' --exclude-dir='.git' --exclude-dir='includes' --exclude-dir='custom' . . | xargs -0 awk '/^\xEF\xBB\xBF/ {print FILENAME} {nextfile}'
fi fi

View File

@ -1,4 +1,4 @@
* Manually generated * Manually generated
* Generation date 2012-07-17 19:54:26 * Generation date 2012-07-17 19:54:26
// START - Lines manually generated (2012-07-17 19:54:26). // START - Lines manually generated (2012-07-17 19:54:26).

View File

@ -1,4 +1,4 @@
# Dolibarr language file - tr_TR - ldap # Dolibarr language file - tr_TR - ldap
CHARSET=UTF-8 CHARSET=UTF-8
DomainPassword=Etki alanı parolası DomainPassword=Etki alanı parolası
YouMustChangePassNextLogon=<b>%s</b> Etki alanındaki <b>%s</b> kullanıcısının parolası değiştirilmelidir. YouMustChangePassNextLogon=<b>%s</b> Etki alanındaki <b>%s</b> kullanıcısının parolası değiştirilmelidir.

View File

@ -1,4 +1,4 @@
# Dolibarr language file - tr_TR - oscommerce # Dolibarr language file - tr_TR - oscommerce
CHARSET=UTF-8 CHARSET=UTF-8
OSCommerce=OS Commerce OSCommerce=OS Commerce
OSCommerceSetup=OS Ticaret modülü kurulumu OSCommerceSetup=OS Ticaret modülü kurulumu

View File

@ -1,4 +1,4 @@
/* /*
* Language code: tr_TR * Language code: tr_TR
* Manually generated * Manually generated
* Generation date 2012-07-23 23:43:26 * Generation date 2012-07-23 23:43:26

View File

@ -1,4 +1,4 @@
/* /*
* Language code: tr_TR * Language code: tr_TR
* Manually generated * Manually generated
* Generation date 2012-07-23 23:40:49 * Generation date 2012-07-23 23:40:49

View File

@ -1,4 +1,4 @@
# Dolibarr language file - tr_TR - shop # Dolibarr language file - tr_TR - shop
CHARSET=UTF-8 CHARSET=UTF-8
Shop=Mağaza Shop=Mağaza
ShopWeb=Web Mağazası ShopWeb=Web Mağazası

View File

@ -1,4 +1,4 @@
Dolibarr language file - tr_TR - trips Dolibarr language file - tr_TR - trips
CHARSET=UTF-8 CHARSET=UTF-8
Trip=Gezi Trip=Gezi
Trips=Geziler Trips=Geziler