[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
HP-UX sed limited to 100 commands problematic for modules/wchar
From: |
Albert Chin |
Subject: |
HP-UX sed limited to 100 commands problematic for modules/wchar |
Date: |
Tue, 8 Feb 2011 13:45:13 -0600 |
User-agent: |
Mutt/1.5.20 (2009-08-17) |
The HP-UX sed command is limited to 100 commands. From sed(1) on HP-UX
11.31:
DESCRIPTION
sed copies the named text files (standard input default) to the
standard output, edited according to a script containing up to 100
commands. Only complete input lines are processed. Any input text at
the end of a file that is not terminated by a new-line character is
ignored.
This has consequences for Makefile.in's with lots of substitutions, like
that for modules/wchar:
# We need the following in order to create <wchar.h> when the system
# version does not work standalone.
wchar.h: wchar.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
$(AM_V_GEN)rm -f address@hidden $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
27: sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
...
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
128: < $(srcdir)/wchar.in.h; \
So, 101 lines which causes sed to fail.
I suppose we need to require AC_PROG_SED and use $SED instead of sed
accordingly?
--
albert chin (address@hidden)
- HP-UX sed limited to 100 commands problematic for modules/wchar,
Albert Chin <=