@echo Compiling %1.TXT to %1.SPR
@echo >\temp.txt #include "/%1.txt"
@copy %1.txt \
@copy c:\psx\bin\psc2psb.h \
@ccpsx32 -O2 -Xo$0 -comments-c++ c:\psx\bin\txt2spr.c -otxt2sp.cpe
@erase \%1.txt
@erase \psc2psb.h
@cpe2x txt2sp.cpe
@erase txt2sp.cpe
@chopfile txt2sp.exe  /SSTARTOFFILE /EENDOFFILE
@erase txt2sp.exe
@erase %1.spr
@rename txt2sp!.exe %1.spr

