[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnulib-tool: unterminated substitute pattern
From: |
Perrog |
Subject: |
gnulib-tool: unterminated substitute pattern |
Date: |
Tue, 31 Oct 2006 21:36:47 +0100 |
Hi!
I get a strange sed warning/error of "unterminated substitute pattern"
while using gnulib-tool. I'm building bison and the bootstrapping
process uses gnulib-tool. I manage to build bison completely, even of
this warning occur. However, I wanted to check what gnulib-tool claims
over. This is the gnulib-tool command
$ rm -fr .#bootmp .#bootmp2 && mkdir .#bootmp .#bootmp2
$ /src/gnu-tools/gnulib/gnulib-tool --import --no-changelog --aux-dir
.#bootmp/build-aux --doc-base .#bootmp/doc --lib libbison --m4-base
.#bootmp/m4/ --source-base .#bootmp/lib/ --tests-base .#bootmp/tests
--local-dir gl --import argmatch config-h configmake dirname error
extensions fopen-safer getopt gettext hash inttypes malloc mbswidth
obstack quote quotearg stdbool stpcpy strerror strtoul strverscmp
unistd unistd-safer unlocked-io verify xalloc xalloc-die xstrndup
Module list with included dependencies:
argmatch
config-h
configmake
dirname
error
exit
exitfail
extensions
fopen-safer
getopt
gettext
gettext-h
hash
havelib
inttypes
malloc
mbswidth
obstack
quote
quotearg
stdbool
stdint
stpcpy
strerror
strndup
strnlen
strtol
strtoul
strverscmp
unistd
unistd-safer
unlocked-io
verify
wcwidth
xalloc
xalloc-die
xstrndup
sed: 4: "/\\$/{
:a
...": unterminated substitute pattern
I tracked down the failure to a regular expression in
"func_get_automake_snippet" in gnulib-tool:906. This is the
expression.
# Synthesize an EXTRA_DIST augmentation.
sed_combine_lines='/\\$/{
:a
N
s/\\\
//
s/\\$/\\/
ta
}'
I can't say if this is an illegal regular expression, but changing it
to the expression below removes the problem. Be aware of my limited
experience with this.
sed_combine_lines='/\\$/{
:a
N
s/\\[\n]//
s/\\$/\\/
ta
}'
Regards,
Roger Persson
##
# System info:
##
# The man page for my sed is dated July 17, 2004.
$ /src/gnu-tools/gnulib/gnulib-tool --version
/src/gnu-tools/gnulib/gnulib-tool (GNU gnulib) 2006-10-23
<copyleft cutted>
$ uname -v
Darwin Kernel Version 8.8.0: Fri Sep 8 17:18:57 PDT 2006;
root:xnu-792.12.6.obj~1/RELEASE_PPC
-- EOF
- gnulib-tool: unterminated substitute pattern,
Perrog <=