]> 4ch.mooo.com Git - 16.git/commitdiff
makefile fixed from ym mistake from yesterday. i made improvements to the automated...
authorsparky4 <sparky4@cock.li>
Thu, 5 Jan 2017 14:47:25 +0000 (08:47 -0600)
committersparky4 <sparky4@cock.li>
Thu, 5 Jan 2017 14:47:25 +0000 (08:47 -0600)
makefile

index 0aaf20a66208c79a21fafca50b961c8f4fda6fb7..5b9c1c810e0f2fa081eac5a30ba06867ba6c6411 100755 (executable)
--- a/makefile
+++ b/makefile
@@ -375,9 +375,9 @@ comq: .symbolic
        @*upx -9 $(UPXQ) $(EXEC)
 
 www: .symbolic
-       @if exist /var/www/$(EXEC)* @$(REMOVECOMMAND) -f /var/www/$(EXEC)*
-       @$(REMOVECOMMAND) -f /var/www/*.exe.zip*
-       @$(COPYCOMMAND) ./$(EXEC) /var/www/
+       @for %f in (/var/www/$(EXEC)) do @if exist /var/www/%f $(REMOVECOMMAND) /var/www/%f
+       @$(REMOVECOMMAND) /var/www/*.exe.zip*
+       @for %f in ($(EXEC)) do @if exist %f @$(COPYCOMMAND) %f /var/www/
        @./src/util/z.sh $(EXEC) $(EXEC)
        ####@wmake -h wwwext