@echo off
if not "%1" == "/*" goto aa
if "%2" == "..1.12" goto us1
cls
goto us0
:usage
echo -
:us0
echo - For use with FWKCS(TM) Contents_Signature System, Version 1.12.
echo - (C)Copyright Frederick W. Kantor 1991. All rights reserved.
echo -
:us1
call lutnote /* ..1.12
echo - LUT.BAT Local Upload Test for testing (zip)files,
echo -         uses options set in FWKCS.COM macros [cdef],
echo -         except sets or overrides option g and sets option x0.
echo -
echo - Usage:  LUT FILE u DESC "<enter>"
echo -
echo -   u (optional; upper or lower case OK) for "UPLOAD".
echo -
echo -   DESC (optional) name for (PCBoard format) text describing FILE.
echo -
echo - Output:
echo -
echo -   ASCII file PASS.TXT or FAIL.TXT.
echo -   if u & PASS & DESC, revises DESC; can create description template.
echo -
echo - For explanation, see FWKCS112.REF, Auxiliary Function 5.
goto end1
:aa
if "%1" == "" goto nd
if not exist %1 goto nf
if "%2" == "U" goto up
if "%2" == "u" goto up
fwkcs %1 /a5[cdef]x0
goto t1
:up
if not "%3" == "" goto upd
fwkcs %1 upload /a5[cdef]gcx0
goto t1
:upd
if exist %3 goto is3
type %3 > %3
:is3
fwkcs %1 upload %3 /a5[cdef]g1,3x0
:t1
if exist fail.txt goto t3
echo -
echo - From PASS.TXT,
echo -
type pass.txt | more
if "%3" == "" goto t4
if "%2" == "U" goto t2
if not "%2" == "u" goto end
:t2
echo -
echo - From %3, as revised,
echo -
type %3
goto t5
:t3
echo -
echo - From FAIL.TXT,
echo -
type fail.txt | more
:t4
if "%2" == "U" goto t5
if not "%2" == "u" goto end
:t5
echo -
echo - you might look in your uploads log (FWKUPLD.LOG)...
echo -
goto end
:nd
echo -
echo -  Nothing to do!
goto usage
:nf
echo -
echo -  Did not find  %1 .
goto usage
:end1
if not "%2" == "..1.12" goto end
if exist QUERYFLA.GUP attrib -r QUERYFLA.GUP > nul
if exist QUERYFLA.GUP del QUERYFLA.GUP > nul
:end
