]> 4ch.mooo.com Git - 16.git/commitdiff
a cute image added
authorsparky4 <sparky4@cock.li>
Wed, 16 Mar 2016 07:13:53 +0000 (02:13 -0500)
committersparky4 <sparky4@cock.li>
Wed, 16 Mar 2016 07:13:53 +0000 (02:13 -0500)
awoo.sh
data/cute.pcx [new file with mode: 0755]
data/cute.png [new file with mode: 0755]
dld.sh [new file with mode: 0755]
makefile
src/bakapi.c
x4get.bat
z.bat

diff --git a/awoo.sh b/awoo.sh
index 27ad155833d96081abaf1d587f8c963ebcf148b9..1f82d9312b220484abf225f12a93f717f3e70c3c 100755 (executable)
--- a/awoo.sh
+++ b/awoo.sh
@@ -1,9 +1,9 @@
 #!/bin/bash
 . ./wbuild.sh
-if [ -f "*.exe" ]
-       then
+#if [ -f "*.exe" ]
+#      then
+#fi
 wmake -h www
-fi
 wmake -h clean
 if [ -z "$*" ]; then
                pee="wwww"
diff --git a/data/cute.pcx b/data/cute.pcx
new file mode 100755 (executable)
index 0000000..d295218
Binary files /dev/null and b/data/cute.pcx differ
diff --git a/data/cute.png b/data/cute.png
new file mode 100755 (executable)
index 0000000..3fac06e
Binary files /dev/null and b/data/cute.png differ
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 5f3579f65736dff32b75868a0f92520f3bdb12c4..9f471fdc1d712f427addf7ec391a9a4bcec21c3d 100755 (executable)
@@ -85,9 +85,9 @@ main(int argc, char *argvar[])
                        //modexLeave();
                        // user imput switch
                        fprintf(stderr, "xx=%d  yy=%d\n", bakapee.xx, bakapee.yy);
-//                     printf("Enter 1, 2, 3, 4, or 6 to run a screensaver, or enter 0 to quit.\n", getch());  // prompt the user
-                       printf("Enter 1, 2, 3, 4, or 6 to run a screensaver, or enter 0 to quit.\n");  // prompt the user
-                       clrstdin();
+                       printf("Enter 1, 2, 3, 4, or 6 to run a screensaver, or enter 0 to quit.\n", getch());  // prompt the user
+//                     printf("Enter 1, 2, 3, 4, or 6 to run a screensaver, or enter 0 to quit.\n");  // prompt the user
+//                     clrstdin();
                        scanf("%d", &key);
                        //if(key==3){xx=yy=0;} // crazy screen saver wwww
                        if(key==0){ d=0; }else{
index d4499689665feb46702277232caa53cf9335b192..74103ffa154cd5347f45d5d68b6f21c61efcad90 100755 (executable)
--- a/x4get.bat
+++ b/x4get.bat
@@ -1 +1,34 @@
-htget http://4ch.mooo.com/16/%1.exe.zip.%2 > %3\r
+@echo off\r
+del %*\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
+rem     echo y=%y\r
+       htget http://4ch.mooo.com/16/%1.zip.00%o > %y\r
+rem    pause\r
+       type %y >> %w.zip\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
+               unzip %w.zip\r
+               del %w.z*\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/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