From 26dd10955332b3489c3359488d7642e4396937f7 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 15 May 2010 05:37:37 +0000 Subject: [PATCH] Detect DOS line endings --- cp-po | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cp-po b/cp-po index 504b7f2..0661d09 100755 --- a/cp-po +++ b/cp-po @@ -74,6 +74,17 @@ for srcfile in $(find "$srcdir" -name '*.po'); do fi fi + if grep -q -IU ' ' $srcfile; then + # DOS line endings break Solaris msgfmt + echo "$me: $srcfile contains DOS line endings" 1>&2 + grep -n -m5 -IU ' ' $srcfile 1>&2 || : + if $force; then + echo "$me: copying anyway, as requested" 1>&2 + else + continue + fi + fi + for y in $nls_mks; do destcat=$(cat $y | sed -n 's/CATALOG_NAME.*:*= *\([^ ]*\)$/\1/p') if [ -z "$destcat" ]; then -- 2.39.5