#!/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"
--- /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
//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{
-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
@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