@echo off REM rugxulo at gmail dot com REM http://rugxulo.googlepages.com REM echo. echo Making FreeDOS edlin 2.10c "NLS via Catgets" (32-bit) with CC386 ! echo (press Ctrl-C to cancel, else any other key to continue ...) echo. pause if exist edlin-2.10c\nul goto found if exist edlin-2.10c.tar.bz2 ren edlin-2.10c.tar.bz2 edln210c.tbz if not exist edln210c.tbz goto end djtar -x edln210c.tbz if not exist edlin-2.10c\nul tar --use-compress-program=bzip2 -xf edln210c.tbz :found if not exist edlin-2.10c\nul goto end if exist edlin-2.10c\nul cd edlin-2.10c copy /b /y msgscats.h msgs.h copy /b config-h.bc config.h REM CC386 uses IO.H instead of UNISTD.H echo #undef HAVE_UNISTD_H >> config.h REM CC386 uses STUB/32A (which calls DOS32A.EXE) by default REM use /WHX for Win32 .EXE which also supports LFN in DOS if HX is loaded REM or you can instead use /WDOSX or /CAUSEWAY or /DOS32A or /DOS4G set O1=/PMODEW if not "%1"=="" set O1=%1 if "%1"=="/STUB32A" set O1= cl386 %O1% /DUSE_CATGETS edlin edlib dynstr defines catgets set O1= REM *** all this below is just optional, so uncomment it if interested *** goto end REM run 'stubit edlin.exe' to pack its Watcom+WDOSX .EXE (UPX won't work) if not "%1"=="/WDOSX" if exist edlin.exe upx --best edlin.exe if "%1"=="/WDOSX" if exist edlin.exe stubit edlin.exe echo. echo ... testing if it works (press 'q' to quit) echo. edlin.exe copy /b kitten\edlin.eo cat.eo set NLSPATH=. set LANG=eo echo. echo ... try reading Esperanto! echo. edlin.exe set NLSPATH= set LANG= echo Bye!! :end