]> 4ch.mooo.com Git - 16.git/commitdiff
added dos getting system ^^
authorsparky4 <sparky4@cock.li>
Wed, 16 Mar 2016 00:33:49 +0000 (19:33 -0500)
committersparky4 <sparky4@cock.li>
Wed, 16 Mar 2016 00:33:49 +0000 (19:33 -0500)
16/x/modex.lib [new file with mode: 0755]
16/x_/modex.lib [new file with mode: 0755]
THE [new file with mode: 0755]
dld.sh [new file with mode: 0755]
makefile
src/lib/doslib
x4get.bat
x4mget.bat [new file with mode: 0755]
z.bat

diff --git a/16/x/modex.lib b/16/x/modex.lib
new file mode 100755 (executable)
index 0000000..1e7d573
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 (executable)
index 0000000..0e11c5c
Binary files /dev/null and b/16/x_/modex.lib differ
diff --git a/THE b/THE
new file mode 100755 (executable)
index 0000000..e69de29
diff --git a/dld.sh b/dld.sh
new file mode 100755 (executable)
index 0000000..0af760d
--- /dev/null
+++ b/dld.sh
@@ -0,0 +1 @@
+cd src/lib/doslib
index 46fa416870f8ac3eb37d43cae35acf9460905339..935fbefd25b05c1228af0ba721c1d8c2b4079974 100755 (executable)
--- 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 <repo>
 uplibs: .symbolic
index c55f2f3f22d9ab3ca64631629378512ab7886fbe..36710d8b91d259ed353e537c17a387e737924469 160000 (submodule)
@@ -1 +1 @@
-Subproject commit c55f2f3f22d9ab3ca64631629378512ab7886fbe
+Subproject commit 36710d8b91d259ed353e537c17a387e737924469
index d4499689665feb46702277232caa53cf9335b192..83dbba7e25725a2eaf08f7aceae7f0bd15c15b5f 100755 (executable)
--- a/x4get.bat
+++ b/x4get.bat
@@ -1 +1,31 @@
-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
diff --git a/x4mget.bat b/x4mget.bat
new file mode 100755 (executable)
index 0000000..87a6a36
--- /dev/null
@@ -0,0 +1,13 @@
+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
diff --git a/z.bat b/z.bat
index 67275e8ea58757bedebf9b63ca63c78d05de5b03..97ed52b7d2918da912f5706d2aa2948f59276350 100755 (executable)
--- a/z.bat
+++ b/z.bat
@@ -1,3 +1,14 @@
 @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