[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gettext] [PATCH 1/8] moop: Replace CR as well as NL with a space
From: |
KO Myung-Hun |
Subject: |
[bug-gettext] [PATCH 1/8] moop: Replace CR as well as NL with a space |
Date: |
Sun, 8 Nov 2015 14:57:57 +0900 |
* gnulib-local/bulid-aux/moopp (func_check_header_syntax):
Replace CR as well as NL with a space.
---
gnulib-local/build-aux/moopp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
mode change 100755 => 100644 gnulib-local/build-aux/moopp
diff --git a/gnulib-local/build-aux/moopp b/gnulib-local/build-aux/moopp
old mode 100755
new mode 100644
index 96a50a6..0e2dbb1
--- a/gnulib-local/build-aux/moopp
+++ b/gnulib-local/build-aux/moopp
@@ -306,12 +306,12 @@ func_check_header_syntax ()
}
class_end_lineno=`expr $methods_lineno + $class_end_lineno`
sed_extract_methods="$class_end_lineno"',$d;1,'"$methods_lineno"'d'
- methods=`sed -e "$sed_remove_comments" < "$file" | sed -e
"$sed_extract_methods" | tr '\n' ' ' | tr ';' '\n' | sed -e 's,[ ]*$,,'`
+ methods=`sed -e "$sed_remove_comments" < "$file" | sed -e
"$sed_extract_methods" | tr '\r\n' ' ' | tr ';' '\n' | sed -e 's,[
]*$,,'`
sed_remove_valid_arg1_lines='/([ ]*'"$classname"'_t[
]*[A-Za-z_0-9]*[ ]*[,)]/d'
sed_extract_method_name='s,^.*[^A-Za-z_0-9]\([A-Za-z_0-9][A-Za-z_0-9]*\)[
]*(.*$,\1,'
methods_with_bad_arg1=`echo "$methods" | sed -e "$sed_remove_empty_lines" -e
"$sed_remove_valid_arg1_lines" -e "$sed_extract_method_name"`
if test -n "$methods_with_bad_arg1"; then
- methods_with_bad_arg1=`{ echo "$methods_with_bad_arg1" | sed -e 's/$/, /'
| tr -d '\n'; echo; } | sed -e 's/\(, \)*$//'`
+ methods_with_bad_arg1=`{ echo "$methods_with_bad_arg1" | sed -e 's/$/, /'
| tr -d '\r\n'; echo; } | sed -e 's/\(, \)*$//'`
func_fatal_error "$file: some methods don't have a first argument of type
${classname}_t: $methods_with_bad_arg1"
fi
}
--
2.6.0
- [bug-gettext] [PATCH] OS/2 patches, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 1/8] moop: Replace CR as well as NL with a space,
KO Myung-Hun <=
- [bug-gettext] [PATCH 2/8] test-lock: Do not include sched.h on kLIBC, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 4/8] gettext-runtime: Fix name resolution failures on kLIBC, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 3/8] build: Do not include os2compat.[ch], KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 6/8] libasprintf: Build a shared library on OS/2, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 7/8] gettext-tools: Use a short name for DLLs on OS/2, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 8/8] xgettext, cldr-plurals: Fix linkage on OS/2, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 5/8] intl: Support UNIXROOT in BINDTEXTDOMAIN () on EMX, KO Myung-Hun, 2015/11/08
- Re: [bug-gettext] [PATCH] OS/2 patches, Daiki Ueno, 2015/11/17