--- /dev/null
+cd src/lib/doslib
@upx -9 $(EXEC)
comq: .symbolic
- @upx -9 $(UPXQ) $(EXEC)
+ @upx -9 $(UPXQ) $(EXEC)
www: .symbolic
# @rm /var/www/$(EXEC)
- @cp ./$(EXEC) /var/www/
- @./z.sh $(EXEC) $(EXEC)
- @scp -r -P 26 *.exe 4ch.mooo.com:/var/www/16/
- @scp -r -P 26 /var/www/*.exe.zip.* 4ch.mooo.com:/var/www/16/
+ @cp ./$(EXEC) /var/www/
+ @./z.sh $(EXEC) $(EXEC)
+ @scp -r -P 26 *.exe 4ch.mooo.com:/var/www/16/
+ @scp -r -P 26 /var/www/*.exe.zip.* 4ch.mooo.com:/var/www/16/
+
+getwww: .symbolic
+ @x4get.bat $(EXEC)
#git submodule add <repo>
uplibs: .symbolic
-Subproject commit c55f2f3f22d9ab3ca64631629378512ab7886fbe
+Subproject commit 36710d8b91d259ed353e537c17a387e737924469
-htget http://4ch.mooo.com/16/%1.exe.zip.%2 > %3\r
+@echo off\r
+setlocal\r
+rem for %@eval[%#+1] in (%*) do (\r
+rem for %# in (1,1,%*) do (\r
+:loop\r
+ set /a o=0\r
+:oooo\r
+ set /a q=%@EVAL[%@LEN[%1] - 4]\r
+ set w=%@INSTR[0,%q,%1]\r
+ iff NOT "%w" == "" then\r
+ set /a o=%o+1\r
+ set y=%w.z%o\r
+ echo y=%y\r
+rem pause\r
+ htget http://4ch.mooo.com/16/%w.zip.00%o >> %y\r
+ iff "%@FILESIZE[%y,b]" == "65536" then\r
+rem echo o=%o\r
+ goto oooo\r
+ endiff\r
+ iff NOT "%#" == "0" then\r
+ shift /1\r
+ echo %1\r
+ goto loop\r
+ endiff\r
+ endiff\r
+rem echo y="%y"\r
+rem echo q=%q\r
+rem echo o=%o\r
+rem echo w=%w\r
+rem echo %%1=%1\r
+endlocal\r
--- /dev/null
+set o=1\r
+rem echo %1\r
+set q=%@EVAL[%@LEN[%1] - 4]\r
+SET w=%@INSTR[0,%q,%1]\r
+echo %w\r
+goto new\r
+:oooo\r
+set o=%@eval[%o + 1]\r
+rem echo %o\r
+:new\r
+set y="%w.z%o"\r
+htget http://4ch.mooo.com/16/%w.zip.00%o >> %y\r
+if %@FILESIZE[%y,b] == 65536 goto OOOO\r
@echo off\r
+set file="%1"\r
+set maxbytesize=65536\r
+\r
+FOR /F "usebackq" %%A IN ('%file%') DO set size=%%~zA\r
+\r
+if %size% LSS %maxbytesize% (\r
+ echo.File is ^< %maxbytesize% bytes\r
+) ELSE (\r
+ echo.File is ^>= %maxbytesize% bytes\r
+)\r
+\r
for /f %%A in ('dir ^| find "*.z?*"') do set cnt=%%A\r
echo File count = %cnt%\r