Blame samples/lynx.bat

Packit f574b8
@echo off
Packit f574b8
@rem $LynxId: lynx.bat,v 1.9 2018/03/21 16:10:36 tom Exp $
Packit f574b8
@rem demonstrate lynx with color-style
Packit f574b8
setlocal
Packit f574b8

Packit f574b8
	set TERM=vt100
Packit f574b8
rem Set HOME to make URLs in config work, though this prevents -trace
Packit f574b8
	set HOME=%~dp0
Packit f574b8
	set PATH=%HOME%;%PATH%
Packit f574b8

Packit f574b8
rem We need a temporary directory
Packit f574b8
	if not "x%LYNX_TEMP_SPACE%"=="x" goto :do_cfg
Packit f574b8
	if "x%TEMP%"=="x"                set LYNX_TEMP_SPACE=%TEMP%
Packit f574b8
	if not "x%TEMP%"=="x"            goto :do_cfg
Packit f574b8
	if "x%TMP%"=="x"                 set LYNX_TEMP_SPACE=%TMP%
Packit f574b8
	if not "x%TMP%"=="x"             goto :do_cfg
Packit f574b8

Packit f574b8
	set LYNX_TEMP_SPACE=%HOMEDRIVE%%HOMEPATH%tmp
Packit f574b8
	mkdir "%LYNX_TEMP_SPACE%"
Packit f574b8
	if not errorlevel 0              goto :do_cfg
Packit f574b8

Packit f574b8
	echo Cannot make temp-directory
Packit f574b8
	goto :eof
Packit f574b8

Packit f574b8
:do_cfg
Packit f574b8
	set LYNX_CFG_PATH=%HOME%
Packit f574b8
	set LYNX_CFG=%HOME%lynx-demo.cfg
Packit f574b8
	set LYNX_LSS=%HOME%lynx.lss
Packit f574b8

Packit f574b8
	lynx.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
Packit f574b8
endlocal