Angus Leeming a écrit :
Abdel wrote:

Angus Leeming a écrit :
Abdel wrote:
Hello Angus,

sed: -e expression #2, char 2: Unterminated `s' command

Try the attached dos2unix.sed script as
$ sed -f dos2unix.sed configure.ac > tmp
it does the same:
sed: file dos2unix.sed line 1: Unterminated `s' command

Ok. We have several options.

Option 2 below was fine bu I also had to correct configure. I had to change configure as recommended by Mickael in his recipe:

5.7 Edit file ./configure: Change line 12520 (move conftest.$ac_ext in front of FLAGS)

ac_link='$CXX -o conftest$ac_exeext conftest.$ac_ext $CXXFLAGS $CPPFLAGS $LDFLAGS $LIBS >&5'

But in my case it was lines 12001 and 15515.

>
> 1. If you have the MSYS-DTK installed then you'll have dos2unix.exe:
>
>   $ dos2unix.exe configure.ac
>
> However, that changes more than just line endings; it may or may not break
> stuff...
>
> 2. Recreate my sed script yourself. From an MSYS terminal window:
>
>   $ sed 's/^M$//' configure.ac > tmp
>   $ mv tmp configure.ac
>
> where ^M is generated as the key sequence Cntl-V Cntl-M.
>
> 3. Try the scripts (attached) again. This time they're compressed so the
> transport process doesn't mess them up.
>
>   $ gunzip dos2unix.sed.gz
>   $ sed -f dos2unix.sed configure.ac > tmp
>
> 4. Use the 1.4 configure script at.
>    http://www.lyx.org/~leeming/configure.gz
> Don't run autogen.sh or it'll be overwritten.

Now the fun begins...

| sed 's/\\/\\\\/g' > layouts_l10n.pot
sed: -e expression #2, char 8: Unterminated `s' command
make[3]: *** [layouts_l10n.pot] Error 1
make[3]: Leaving directory `D:/msys/home/yns/src/lyx-devel/po'
make[2]: *** [LyX.pot-update] Error 2
make[2]: Leaving directory `D:/msys/home/yns/src/lyx-devel/po'
D:\mingw\bin\make.exe[1]: *** [LyX.pot] Error 2
D:\mingw\bin\make.exe[1]: Leaving directory `D:/msys/home/yns/src/lyx-devel/po'
D:\mingw\bin\make.exe: *** [all-recursive] Error 1

This looks like the same kind of error. I looked at the po/Makefile but I don't know sed at all. Line 735 is this:

        ${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc \
        | sed 's/\\/\\\\/g' > $@

Is that a correct sed expression? I tried a make clean && make and then, there is a different error:

$ cd po

[EMAIL PROTECTED] ~/src/lyx-devel/po
$ make clean
FIND: Parameter format not correct
rm -f *.insert-header
rm -f remove-potcdate.sed
rm -f stamp-poT
rm -f core core.* LyX.po LyX.1po LyX.2po *.new.po
rm -fr *.o

[EMAIL PROTECTED] ~/src/lyx-devel/po
$ make
FIND: Parameter format not correct
make LyX.pot-update
FIND: Parameter format not correct
make[1]: Entering directory `D:/msys/home/yns/src/lyx-devel/po'
sed -e '/^#/d' remove-potcdate.sin > t-remove-potcdate.sed
mv t-remove-potcdate.sed remove-potcdate.sed
make l10n_pots
FIND: Parameter format not correct
make[2]: Entering directory `D:/msys/home/yns/src/lyx-devel/po'
cat xforms_l10n.pot qt_l10n.pot layouts_l10n.pot languages_l10n.pot ui_l10n.pot | \ msguniq -o LyX.po && rm -f xforms_l10n.pot qt_l10n.pot layouts_l10n.pot languag es_l10n.pot ui_l10n.pot
<stdin>:5: end-of-line within string
<stdin>:6: end-of-line within string
<stdin>:7: end-of-line within string
<stdin>:8: end-of-line within string
D:\mingw\bin\msguniq.exe: <stdin>: warning: Charset "ISO-8859-1Content-Transfer- Encoding:" is not a portable encoding name. Message conversion to user's charset might not work.
D:\mingw\bin\msguniq.exe: found 4 fatal errors
make[2]: *** [l10n_pots] Error 1
make[2]: Leaving directory `D:/msys/home/yns/src/lyx-devel/po'
make[1]: *** [LyX.pot-update] Error 2
make[1]: Leaving directory `D:/msys/home/yns/src/lyx-devel/po'
D:\mingw\bin\make.exe: *** [LyX.pot] Error 2



Sorry for all this. I'll maybe wait for a formal (beta) delivery of lyx
1.4

<shrug>And who is going to compile that?</shrug>

For my defense I'd say that I have invested a lot of time already on that. I think I am close but it's really not fun.

Thanks,
Abdel.

Reply via email to