Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
24aea45d
Commit
24aea45d
authored
10 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix also xml file of CRLF
parent
025d8c2a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dev/fixdosfiles.sh
+3
-3
3 additions, 3 deletions
dev/fixdosfiles.sh
with
3 additions
and
3 deletions
dev/fixdosfiles.sh
+
3
−
3
View file @
24aea45d
...
@@ -17,14 +17,14 @@ fi
...
@@ -17,14 +17,14 @@ fi
# To detec
# To detec
if
[
"x
$1
"
=
"xlist"
]
if
[
"x
$1
"
=
"xlist"
]
then
then
find
.
\(
-iname
"*.md"
-o
-iname
"*.html"
-o
-iname
"*.htm"
-o
-iname
"*.php"
-o
-iname
"*.sh"
-o
-iname
"*.cml"
-o
-iname
"*.css"
-o
-iname
"*.js"
-o
-iname
"*.lang"
-o
-iname
"*.pl"
-o
-iname
"*.txt"
\)
-exec
file
"{}"
+ |
grep
CRLF
find
.
\(
-iname
"*.md"
-o
-iname
"*.html"
-o
-iname
"*.htm"
-o
-iname
"*.php"
-o
-iname
"*.sh"
-o
-iname
"*.cml"
-o
-iname
"*.css"
-o
-iname
"*.js"
-o
-iname
"*.lang"
-o
-iname
"*.pl"
-o
-iname
"*.txt"
-o
-iname
"*.xml"
\)
-exec
file
"{}"
+ |
grep
CRLF
# find . \( -iname "*.md" -o -iname "*.html" -o -iname "*.htm" -o -iname "*.php" -o -iname "*.sh" -o -iname "*.cml" -o -iname "*.css" -o -iname "*.js" -o -iname "*.lang" -o -iname "*.pl" -o -iname "*.txt" \) -exec file "{}" + | grep -v 'htdocs\/includes' | grep CRLF
# find . \( -iname "*.md" -o -iname "*.html" -o -iname "*.htm" -o -iname "*.php" -o -iname "*.sh" -o -iname "*.cml" -o -iname "*.css" -o -iname "*.js" -o -iname "*.lang" -o -iname "*.pl" -o -iname "*.txt"
-o -iname "*.xml"
\) -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
"*.md"
-o
-iname
"*.html"
-o
-iname
"*.htm"
-o
-iname
"*.php"
-o
-iname
"*.sh"
-o
-iname
"*.cml"
-o
-iname
"*.css"
-o
-iname
"*.js"
-o
-iname
"*.lang"
-o
-iname
"*.pl"
-o
-iname
"*.txt"
\)
-exec
file
"{}"
+ |
grep
CRLF |
awk
-F
':'
'{ print $1 }'
`
for
fic
in
`
find
.
\(
-iname
"*.md"
-o
-iname
"*.html"
-o
-iname
"*.htm"
-o
-iname
"*.php"
-o
-iname
"*.sh"
-o
-iname
"*.cml"
-o
-iname
"*.css"
-o
-iname
"*.js"
-o
-iname
"*.lang"
-o
-iname
"*.pl"
-o
-iname
"*.txt"
-o
-iname
"*.xml"
\)
-exec
file
"{}"
+ |
grep
CRLF |
awk
-F
':'
'{ print $1 }'
`
do
do
echo
"Fix file
$fic
"
echo
"Fix file
$fic
"
dos2unix
$fic
dos2unix
$fic
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment