Angus Leeming <[EMAIL PROTECTED]> writes:
> 
> From an MSYS terminal window (maybe even a cmd.exe one for all I know):
> 
> cd "C:/Program Files/LyX/Resources/lyx"
> <PATH TO>/sh.exe configure
> 
> That will generate the missing files.

Angus, what about a configure.bat script?

Perhaps it can also solve the problem that the configure script is not
launched in 137pre5 at installation time (I also have this problem).

Here is the one I use. It extracts the \path_prefix from configure to
properly set up the path before calling sh.exe configure.
Please, manually join the lines ending with \ to the line following them.
I had to resort to break them this way as the gmane interface does not let
me post lines longer than 80 chars.

--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------
@echo off
if "%OS%"=="Windows_NT" goto win2k
goto usage

:win2k
setlocal enableextensions
if not exist "configure" goto noconf
if "%ComSpec%"=="" goto nocmd
if "%windir%"=="" goto nocmd

:: Make sure native windows commands are (initially) ahead in the path
for /f "usebackq tokens=* delims=" %%A in (`echo %ComSpec%`) do \
    set PATH=%windir%;%%~dpA;%PATH%

:: Extract \path_prefix from configure and prepend it to the path
for /f "usebackq tokens=2 delims= " %%A in (`type configure ^| \
    find "path_prefix"`) do set pathprefix=%%A
set pathprefix=%pathprefix:"=%
set pathprefix=%pathprefix:\\=\%
set PATH=%pathprefix%;%PATH%

:: We are ready to launch configure
C:\cygwin\bin\sh.exe configure
goto end

:nocmd
echo.
echo Cannot find the command interpreter or the system dir.
goto end

:usage
echo.
echo This script works on Windows NT 4 / 2000 / XP
echo and performs a system wide configuration of LyX.
goto end

:noconf
echo.
echo Cannot find the configure script.

:end
if "%OS%"=="Windows_NT" endlocal
--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------



Reply via email to