summaryrefslogtreecommitdiff
path: root/Master/bin/powerpc-darwin/updmap
diff options
context:
space:
mode:
Diffstat (limited to 'Master/bin/powerpc-darwin/updmap')
-rwxr-xr-xMaster/bin/powerpc-darwin/updmap7
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/bin/powerpc-darwin/updmap b/Master/bin/powerpc-darwin/updmap
index c66303fdeee..ced046f76b9 100755
--- a/Master/bin/powerpc-darwin/updmap
+++ b/Master/bin/powerpc-darwin/updmap
@@ -1052,7 +1052,8 @@ syncWithTrees()
###############################################################################
# normalizeLines()
# remove comments, whitespace is exactly one space, no empty lines,
-# no whitespace at end of line, one space before and after "
+# no whitespace at end of line, one space before and after ",
+# no CR's (as in skaknew).
###############################################################################
normalizeLines()
{
@@ -1062,7 +1063,9 @@ normalizeLines()
-e '/^ *$/d' \
-e 's@ $@@' \
-e 's@ *" *@ " @g' \
- -e 's@" \([^"]*\) "@"\1"@g' | sort | uniq
+ -e 's@" \([^"]*\) "@"\1"@g' \
+ | tr -d '\r' \
+ | sort | uniq
}
###############################################################################