wwww
修訂 | f634ec0b04d9641e564ffdf1777a746294678fd7 (tree) |
---|---|
時間 | 2016-03-16 16:13:53 |
作者 | sparky4 <sparky4@cock...> |
Commiter | sparky4 |
a cute image added
@@ -1,9 +1,9 @@ | ||
1 | 1 | #!/bin/bash |
2 | 2 | . ./wbuild.sh |
3 | -if [ -f "*.exe" ] | |
4 | - then | |
3 | +#if [ -f "*.exe" ] | |
4 | +# then | |
5 | +#fi | |
5 | 6 | wmake -h www |
6 | -fi | |
7 | 7 | wmake -h clean |
8 | 8 | if [ -z "$*" ]; then |
9 | 9 | pee="wwww" |
@@ -0,0 +1 @@ | ||
1 | +cd src/lib/doslib |
@@ -431,14 +431,17 @@ comp: .symbolic | ||
431 | 431 | @upx -9 $(EXEC) |
432 | 432 | |
433 | 433 | comq: .symbolic |
434 | - @upx -9 $(UPXQ) $(EXEC) | |
434 | + @upx -9 $(UPXQ) $(EXEC) | |
435 | 435 | |
436 | 436 | www: .symbolic |
437 | 437 | # @rm /var/www/$(EXEC) |
438 | - @cp ./$(EXEC) /var/www/ | |
439 | - @./z.sh $(EXEC) $(EXEC) | |
440 | - @scp -r -P 26 *.exe 4ch.mooo.com:/var/www/16/ | |
441 | - @scp -r -P 26 /var/www/*.exe.zip.* 4ch.mooo.com:/var/www/16/ | |
438 | + @cp ./$(EXEC) /var/www/ | |
439 | + @./z.sh $(EXEC) $(EXEC) | |
440 | + @scp -r -P 26 *.exe 4ch.mooo.com:/var/www/16/ | |
441 | + @scp -r -P 26 /var/www/*.exe.zip.* 4ch.mooo.com:/var/www/16/ | |
442 | + | |
443 | +getwww: .symbolic | |
444 | + @x4get.bat $(EXEC) | |
442 | 445 | |
443 | 446 | #git submodule add <repo> |
444 | 447 | uplibs: .symbolic |
@@ -85,9 +85,9 @@ main(int argc, char *argvar[]) | ||
85 | 85 | //modexLeave(); |
86 | 86 | // user imput switch |
87 | 87 | fprintf(stderr, "xx=%d yy=%d\n", bakapee.xx, bakapee.yy); |
88 | -// printf("Enter 1, 2, 3, 4, or 6 to run a screensaver, or enter 0 to quit.\n", getch()); // prompt the user | |
89 | - printf("Enter 1, 2, 3, 4, or 6 to run a screensaver, or enter 0 to quit.\n"); // prompt the user | |
90 | - clrstdin(); | |
88 | + printf("Enter 1, 2, 3, 4, or 6 to run a screensaver, or enter 0 to quit.\n", getch()); // prompt the user | |
89 | +// printf("Enter 1, 2, 3, 4, or 6 to run a screensaver, or enter 0 to quit.\n"); // prompt the user | |
90 | +// clrstdin(); | |
91 | 91 | scanf("%d", &key); |
92 | 92 | //if(key==3){xx=yy=0;} // crazy screen saver wwww |
93 | 93 | if(key==0){ d=0; }else{ |
@@ -1 +1,34 @@ | ||
1 | -htget http://4ch.mooo.com/16/%1.exe.zip.%2 > %3 | |
1 | +@echo off | |
2 | +del %* | |
3 | +setlocal | |
4 | +rem for %@eval[%#+1] in (%*) do ( | |
5 | +rem for %# in (1,1,%*) do ( | |
6 | +:loop | |
7 | + set /a o=0 | |
8 | +:oooo | |
9 | + set /a q=%@EVAL[%@LEN[%1] - 4] | |
10 | + set w=%@INSTR[0,%q,%1] | |
11 | + iff NOT "%w" == "" then | |
12 | + set /a o=%o+1 | |
13 | + set y=%w.z%o | |
14 | +rem echo y=%y | |
15 | + htget http://4ch.mooo.com/16/%1.zip.00%o > %y | |
16 | +rem pause | |
17 | + type %y >> %w.zip | |
18 | + iff "%@FILESIZE[%y,b]" == "65536" then | |
19 | +rem echo o=%o | |
20 | + goto oooo | |
21 | + endiff | |
22 | + iff NOT "%#" == "0" then | |
23 | + shift /1 | |
24 | + unzip %w.zip | |
25 | + del %w.z* | |
26 | + goto loop | |
27 | + endiff | |
28 | + endiff | |
29 | +rem echo y="%y" | |
30 | +rem echo q=%q | |
31 | +rem echo o=%o | |
32 | +rem echo w=%w | |
33 | +rem echo %%1=%1 | |
34 | +endlocal |
@@ -1,3 +1,14 @@ | ||
1 | 1 | @echo off |
2 | +set file="%1" | |
3 | +set maxbytesize=65536 | |
4 | + | |
5 | +FOR /F "usebackq" %%A IN ('%file%') DO set size=%%~zA | |
6 | + | |
7 | +if %size% LSS %maxbytesize% ( | |
8 | + echo.File is ^< %maxbytesize% bytes | |
9 | +) ELSE ( | |
10 | + echo.File is ^>= %maxbytesize% bytes | |
11 | +) | |
12 | + | |
2 | 13 | for /f %%A in ('dir ^| find "*.z?*"') do set cnt=%%A |
3 | 14 | echo File count = %cnt% |