parse arg option '=' srcdir
select
when option='-h'|option='-help'|option='--help'thendo
say 'Usage: configure [options]'
say 'Options:'
say ' --help show this help lines'
say ' --without-latex-config do not run LaTeX to determine configuration' exit
end
when option='--without-latex-config'then
lyx_check_config='no'
when option='--srcdir'then
srcdir=translate(srcdir,'\','/')
otherwise
nop
end /* select */ if srcdir=''thendo
parse source 'OS/2 COMMAND ' script
say 'script =' script
srcdir=filespec('drive',script)strip(filespec('path',script),'T','\')
end
rc=SysFileTree(srcdir'\'latex_script,found,'F') if found.0 = 0 thendo
say "configure: error: cannot find "srcdir'\'latex_script" script" exit 1
end
curdir=directory() if \(curdir=srcdir) then'xcopy /s 'srcdir' 'curdir'\'
curdir=translate(curdir,'/','\')
srcdir=translate(srcdir,'/','\') call SysFileTree EMTEXDIR'\bin\latex.cmd', 'found', 'F' if found.0 = 0 then LATEX='latex2e'
else LATEX='latex' if \(''=SysSearchPath('PATH','gv.exe')) then
GHOSTVIEW='gv'
else if \(''=SysSearchPath('PATH','ghostview.exe')) then
GHOSTVIEW='ghostview'
else
GHOSTVIEW='none' if (''=SysSearchPath('PATH','sgml2lyx.exe')) then
SGMLTOOLS='none'
else
SGMLTOOLS='sgml2lyx' if (''=SysSearchPath('PATH','chktex.exe')) then
CHKTEX='none'
else
CHKTEX='chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38' call SysFileTree 'reLyX\reLyx.cmd', 'found', 'F' if found.0 = 0 then
RELYX='none'
else
RELYX='reLyX.cmd' call SysFileDelete 'chklatex.ltx'
rc=lineout('chklatex.ltx','\nonstopmode\makeatletter')
rc=lineout('chklatex.ltx','\ifx\undefined\documentclass\else')
rc=lineout('chklatex.ltx',' \message{ThisIsLaTeX2e}')
rc=lineout('chklatex.ltx','\fi')
rc=lineout('chklatex.ltx','\@@end')
rc=lineout('chklatex.ltx') 'cmd /c 'LATEX' chklatex.ltx>nul' call SysFileSearch 'NotLaTeX2e', 'chklatex.log', chklatex if chklatex.0 > 0 then LATEX=''
rc=SysFileDelete('textclass.lst')
rc=SysFileDelete('packages.lst')
rc=SysFileDelete('chkconfig.sed') if \(lyx_check_config='no') then do
rc=SysFileTree(srcdir'\layouts\*.layout',found,'FO')
rc=SysFileDelete('chklayouts.tex')
rc=SysFileDelete('chkconfig.vars') if found.0>0 then do num=1 to found.0
parse value filespec('name',found.num) with DocClass '.layout'
parse value DocClass with mainClass '_' subClass if''=subClass then
rc=lineout('chklayouts.tex','\TestDocClass{'DocClass'}')
else /* Not used, or must be empty? */
rc=lineout('chklayouts.tex','\TestDocClass['mainClass'.cls]{'DocClass'}')
end
rc=lineout('chklayouts.tex')
sgmltools_cmd=''
chk_sgmltools='no' if SGMLTOOLS='sgml2lyx'then do
chk_sgmltools='yes'
sgmltools_cmd='\def\hassgmltools{}'
end
rc=SysFileDelete('wrap_chkconfig.ltx')
rc=lineout('wrap_chkconfig.ltx','\newcommand\srcdir{'srcdir'}')
rc=lineout('wrap_chkconfig.ltx',sgmltools_cmd)
rc=lineout('wrap_chkconfig.ltx','\input{'srcdir'/chkconfig.ltx}')
rc=lineout('wrap_chkconfig.ltx') 'cmd /c 'LATEX' wrap_chkconfig.ltx'
size=stream('chkconfig.sed','c','query size')
rc=stream('chkconfig.sed','c','open')
rc=stream('chkconfig.sed','c','seek +'size)
rc=lineout('chkconfig.sed','s/@chk_sgmltools@/'chk_sgmltools'/g')
rc=lineout('chkconfig.sed') call SysFileSearch 'chk_graphicsdriver=', 'chkconfig.vars', graphics if graphics.0 > 0 then parse var graphics.1 chk"='"rc_graphicsdriver"'" call SysFileSearch 'chk_fontenc=', 'chkconfig.vars', fontenc if fontenc.0 > 0 then parse var fontenc.1 chk"='"rc_fontenc"'"
end
call SysFileTree 'textclass.lst', 'file', 'FO' if file.0=0 then do
rc=lineout('textclass.lst','# This file declares layouts and their associated definition files')
rc=lineout('textclass.lst','# (include dir. relative to the place where this file is).')
rc=lineout('textclass.lst','# It contains only default values, since chkconfig.ltx could not be run')
rc=lineout('textclass.lst','# for some reason. Run ./configure if you need to update it after a')
rc=lineout('textclass.lst','# configuration change.')
rc=lineout('textclass.lst','article article article')
rc=lineout('textclass.lst','report report report')
rc=lineout('textclass.lst','book book book')
rc=lineout('textclass.lst','linuxdoc linuxdoc linuxdoc')
rc=lineout('textclass.lst','letter letter letter')
rc=lineout('textclass.lst')
rc=lineout('chkconfig.sed','s/@.*@/???/g')
rc=lineout('chkconfig.sed')
rc_graphics='none'
end
call SysFileTree 'chkconfig.sed', 'file', 'FO' if file.0=0 then do
rc=lineout('chkconfig.sed','s/@.*@/???/g')
rc=lineout('chkconfig.sed')
end
call SysFileTree 'packages.lst', 'file', 'FO' if file.0=0 then do
rc=lineout('packages.lst','# This file should contain the list of LaTeX packages that have been')
rc=lineout('packages.lst','# recognized by LyX. Unfortunately, since configure could not find')
rc=lineout('packages.lst','# your LaTeX2e program, the tests have not been run. Run configure')
rc=lineout('packages.lst','# if you need to update it after a configuration change.')
rc=lineout('packages.lst')
end
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.