From: sparky4 Date: Wed, 16 Mar 2016 00:33:49 +0000 (-0500) Subject: added dos getting system ^^ X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=42b9296b70b56473fabe57bcb3644baff377b28a;p=16.git added dos getting system ^^ --- diff --git a/16/x/modex.lib b/16/x/modex.lib new file mode 100755 index 00000000..1e7d573d Binary files /dev/null and b/16/x/modex.lib differ diff --git a/16/x_/modex.lib b/16/x_/modex.lib new file mode 100755 index 00000000..0e11c5c0 Binary files /dev/null and b/16/x_/modex.lib differ diff --git a/THE b/THE new file mode 100755 index 00000000..e69de29b diff --git a/dld.sh b/dld.sh new file mode 100755 index 00000000..0af760d7 --- /dev/null +++ b/dld.sh @@ -0,0 +1 @@ +cd src/lib/doslib diff --git a/makefile b/makefile index 46fa4168..935fbefd 100755 --- a/makefile +++ b/makefile @@ -431,14 +431,17 @@ comp: .symbolic @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 uplibs: .symbolic diff --git a/src/lib/doslib b/src/lib/doslib index c55f2f3f..36710d8b 160000 --- a/src/lib/doslib +++ b/src/lib/doslib @@ -1 +1 @@ -Subproject commit c55f2f3f22d9ab3ca64631629378512ab7886fbe +Subproject commit 36710d8b91d259ed353e537c17a387e737924469 diff --git a/x4get.bat b/x4get.bat index d4499689..83dbba7e 100755 --- a/x4get.bat +++ b/x4get.bat @@ -1 +1,31 @@ -htget http://4ch.mooo.com/16/%1.exe.zip.%2 > %3 +@echo off +setlocal +rem for %@eval[%#+1] in (%*) do ( +rem for %# in (1,1,%*) do ( +:loop + set /a o=0 +:oooo + set /a q=%@EVAL[%@LEN[%1] - 4] + set w=%@INSTR[0,%q,%1] + iff NOT "%w" == "" then + set /a o=%o+1 + set y=%w.z%o + echo y=%y +rem pause + htget http://4ch.mooo.com/16/%w.zip.00%o >> %y + iff "%@FILESIZE[%y,b]" == "65536" then +rem echo o=%o + goto oooo + endiff + iff NOT "%#" == "0" then + shift /1 + echo %1 + goto loop + endiff + endiff +rem echo y="%y" +rem echo q=%q +rem echo o=%o +rem echo w=%w +rem echo %%1=%1 +endlocal diff --git a/x4mget.bat b/x4mget.bat new file mode 100755 index 00000000..87a6a364 --- /dev/null +++ b/x4mget.bat @@ -0,0 +1,13 @@ +set o=1 +rem echo %1 +set q=%@EVAL[%@LEN[%1] - 4] +SET w=%@INSTR[0,%q,%1] +echo %w +goto new +:oooo +set o=%@eval[%o + 1] +rem echo %o +:new +set y="%w.z%o" +htget http://4ch.mooo.com/16/%w.zip.00%o >> %y +if %@FILESIZE[%y,b] == 65536 goto OOOO diff --git a/z.bat b/z.bat index 67275e8e..97ed52b7 100755 --- a/z.bat +++ b/z.bat @@ -1,3 +1,14 @@ @echo off +set file="%1" +set maxbytesize=65536 + +FOR /F "usebackq" %%A IN ('%file%') DO set size=%%~zA + +if %size% LSS %maxbytesize% ( + echo.File is ^< %maxbytesize% bytes +) ELSE ( + echo.File is ^>= %maxbytesize% bytes +) + for /f %%A in ('dir ^| find "*.z?*"') do set cnt=%%A echo File count = %cnt%