From: Steve Hay Date: Wed, 8 Mar 2006 16:25:23 +0000 (+0000) Subject: Get rid of unnecessary "rmdir /s" calls in Win32 makefiles X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2909fc9d34b1974c9d36c05919897a9934ee7df0;p=p5sagit%2Fp5-mst-13.2.git Get rid of unnecessary "rmdir /s" calls in Win32 makefiles They only existed for the benefit of old shells that didn't understand "rmdir /s /q", but since change #27195 effectively drops support for old shells that don't understand "xcopy /y" it seems unnecessary now. Windows NT4, 2000, XP and onwards all support "rmdir /s /q", so it's probably only the Windows 9x shells that lose out. p4raw-link: @27195 on //depot/perl: b6ed73147a6df30ce6f460cb8d6857100c9a83be p4raw-id: //depot/perl@27421 --- diff --git a/win32/Makefile b/win32/Makefile index 4e0f9b3..a29b848 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -1135,8 +1135,6 @@ utils: $(PERLEXE) $(X2P) # Note that the pod cleanup in this next section is parsed (and regenerated # by pod/buildtoc so please check that script before making changes here -# the doubled rmdir calls are needed because older cmd shells -# don't understand /q distclean: realclean -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \ $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD) @@ -1172,35 +1170,20 @@ distclean: realclean -del /f $(LIBDIR)\Math\BigInt\FastCalc.pm -del /f $(LIBDIR)\Win32.pm -if exist $(LIBDIR)\B rmdir /s /q $(LIBDIR)\B - -if exist $(LIBDIR)\B rmdir /s $(LIBDIR)\B -if exist $(LIBDIR)\Compress rmdir /s /q $(LIBDIR)\Compress - -if exist $(LIBDIR)\Compress rmdir /s $(LIBDIR)\Compress -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data - -if exist $(LIBDIR)\Data rmdir /s $(LIBDIR)\Data -if exist $(LIBDIR)\Encode rmdir /s /q $(LIBDIR)\Encode - -if exist $(LIBDIR)\Encode rmdir /s $(LIBDIR)\Encode -if exist $(LIBDIR)\Filter\Util rmdir /s /q $(LIBDIR)\Filter\Util - -if exist $(LIBDIR)\Filter\Util rmdir /s $(LIBDIR)\Filter\Util -if exist $(LIBDIR)\Hash rmdir /s /q $(LIBDIR)\Hash - -if exist $(LIBDIR)\Hash rmdir /s $(LIBDIR)\Hash -if exist $(LIBDIR)\IO\Compress rmdir /s /q $(LIBDIR)\IO\Compress - -if exist $(LIBDIR)\IO\Compress rmdir /s $(LIBDIR)\IO\Compress -if exist $(LIBDIR)\IO\Socket rmdir /s /q $(LIBDIR)\IO\Socket - -if exist $(LIBDIR)\IO\Socket rmdir /s $(LIBDIR)\IO\Socket -if exist $(LIBDIR)\IO\Uncompress rmdir /s /q $(LIBDIR)\IO\Uncompress - -if exist $(LIBDIR)\IO\Uncompress rmdir /s $(LIBDIR)\IO\Uncompress -if exist $(LIBDIR)\List rmdir /s /q $(LIBDIR)\List - -if exist $(LIBDIR)\List rmdir /s $(LIBDIR)\List -if exist $(LIBDIR)\MIME rmdir /s /q $(LIBDIR)\MIME - -if exist $(LIBDIR)\MIME rmdir /s $(LIBDIR)\MIME -if exist $(LIBDIR)\Scalar rmdir /s /q $(LIBDIR)\Scalar - -if exist $(LIBDIR)\Scalar rmdir /s $(LIBDIR)\Scalar -if exist $(LIBDIR)\Sys rmdir /s /q $(LIBDIR)\Sys - -if exist $(LIBDIR)\Sys rmdir /s $(LIBDIR)\Sys -if exist $(LIBDIR)\threads rmdir /s /q $(LIBDIR)\threads - -if exist $(LIBDIR)\threads rmdir /s $(LIBDIR)\threads -if exist $(LIBDIR)\XS rmdir /s /q $(LIBDIR)\XS - -if exist $(LIBDIR)\XS rmdir /s $(LIBDIR)\XS -cd $(PODDIR) && del /f *.html *.bat checkpods \ perlaix.pod perlamiga.pod perlapollo.pod perlbeos.pod \ perlbs2000.pod perlce.pod perlcn.pod perlcygwin.pod \ @@ -1226,9 +1209,7 @@ distclean: realclean -cd .. && del /s *.lib *.map *.pdb *.ilk *.bs *$(o) .exists pm_to_blib -cd $(EXTDIR) && del /s *.def Makefile Makefile.old -if exist $(AUTODIR) rmdir /s /q $(AUTODIR) - -if exist $(AUTODIR) rmdir /s $(AUTODIR) -if exist $(COREDIR) rmdir /s /q $(COREDIR) - -if exist $(COREDIR) rmdir /s $(COREDIR) install : all installbare installhtml @@ -1285,8 +1266,6 @@ _test : $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES) cd ..\win32 -# the doubled rmdir calls are needed because older cmd shells -# don't understand /q _clean : -@$(DEL) miniperlmain$(o) -@$(DEL) $(MINIPERL) @@ -1300,11 +1279,8 @@ _clean : -@$(DEL) $(PERLDLL) -@$(DEL) $(CORE_OBJ) -if exist $(MINIDIR) rmdir /s /q $(MINIDIR) - -if exist $(MINIDIR) rmdir /s $(MINIDIR) -if exist $(UNIDATADIR1) rmdir /s /q $(UNIDATADIR1) - -if exist $(UNIDATADIR1) rmdir /s $(UNIDATADIR1) -if exist $(UNIDATADIR2) rmdir /s /q $(UNIDATADIR2) - -if exist $(UNIDATADIR2) rmdir /s $(UNIDATADIR2) -@$(DEL) $(UNIDATAFILES) -@$(DEL) $(WIN32_OBJ) -@$(DEL) $(DLL_OBJ) diff --git a/win32/makefile.mk b/win32/makefile.mk index 8a7b8bd..255c76d 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -1298,8 +1298,6 @@ utils: $(PERLEXE) $(X2P) # Note that the pod cleanup in this next section is parsed (and regenerated # by pod/buildtoc so please check that script before making changes here -# the doubled rmdir calls are needed because older cmd shells -# don't understand /q distclean: realclean -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \ $(PERLIMPLIB) ..\miniperl$(a) $(MINIMOD) @@ -1334,35 +1332,20 @@ distclean: realclean -del /f $(LIBDIR)\Math\BigInt\FastCalc.pm -del /f $(LIBDIR)\Win32.pm -if exist $(LIBDIR)\B rmdir /s /q $(LIBDIR)\B - -if exist $(LIBDIR)\B rmdir /s $(LIBDIR)\B -if exist $(LIBDIR)\Compress rmdir /s /q $(LIBDIR)\Compress - -if exist $(LIBDIR)\Compress rmdir /s $(LIBDIR)\Compress -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data - -if exist $(LIBDIR)\Data rmdir /s $(LIBDIR)\Data -if exist $(LIBDIR)\Encode rmdir /s /q $(LIBDIR)\Encode - -if exist $(LIBDIR)\Encode rmdir /s $(LIBDIR)\Encode -if exist $(LIBDIR)\Filter\Util rmdir /s /q $(LIBDIR)\Filter\Util - -if exist $(LIBDIR)\Filter\Util rmdir /s $(LIBDIR)\Filter\Util -if exist $(LIBDIR)\Hash rmdir /s /q $(LIBDIR)\Hash - -if exist $(LIBDIR)\Hash rmdir /s $(LIBDIR)\Hash -if exist $(LIBDIR)\IO\Compress rmdir /s /q $(LIBDIR)\IO\Compress - -if exist $(LIBDIR)\IO\Compress rmdir /s $(LIBDIR)\IO\Compress -if exist $(LIBDIR)\IO\Socket rmdir /s /q $(LIBDIR)\IO\Socket - -if exist $(LIBDIR)\IO\Socket rmdir /s $(LIBDIR)\IO\Socket -if exist $(LIBDIR)\IO\Uncompress rmdir /s /q $(LIBDIR)\IO\Uncompress - -if exist $(LIBDIR)\IO\Uncompress rmdir /s $(LIBDIR)\IO\Uncompress -if exist $(LIBDIR)\List rmdir /s /q $(LIBDIR)\List - -if exist $(LIBDIR)\List rmdir /s $(LIBDIR)\List -if exist $(LIBDIR)\MIME rmdir /s /q $(LIBDIR)\MIME - -if exist $(LIBDIR)\MIME rmdir /s $(LIBDIR)\MIME -if exist $(LIBDIR)\Scalar rmdir /s /q $(LIBDIR)\Scalar - -if exist $(LIBDIR)\Scalar rmdir /s $(LIBDIR)\Scalar -if exist $(LIBDIR)\Sys rmdir /s /q $(LIBDIR)\Sys - -if exist $(LIBDIR)\Sys rmdir /s $(LIBDIR)\Sys -if exist $(LIBDIR)\threads rmdir /s /q $(LIBDIR)\threads - -if exist $(LIBDIR)\threads rmdir /s $(LIBDIR)\threads -if exist $(LIBDIR)\XS rmdir /s /q $(LIBDIR)\XS - -if exist $(LIBDIR)\XS rmdir /s $(LIBDIR)\XS -cd $(PODDIR) && del /f *.html *.bat checkpods \ perlaix.pod perlamiga.pod perlapollo.pod perlbeos.pod \ perlbs2000.pod perlce.pod perlcn.pod perlcygwin.pod \ @@ -1388,9 +1371,7 @@ distclean: realclean -cd .. && del /s *$(a) *.map *.pdb *.ilk *.tds *.bs *$(o) .exists pm_to_blib -cd $(EXTDIR) && del /s *.def Makefile Makefile.old -if exist $(AUTODIR) rmdir /s /q $(AUTODIR) - -if exist $(AUTODIR) rmdir /s $(AUTODIR) -if exist $(COREDIR) rmdir /s /q $(COREDIR) - -if exist $(COREDIR) rmdir /s $(COREDIR) install : all installbare installhtml @@ -1453,8 +1434,6 @@ _test : $(RIGHTMAKE) .ENDIF cd ..\t && $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES) -# the doubled rmdir calls are needed because older cmd shells -# don't understand /q _clean : -@erase miniperlmain$(o) -@erase $(MINIPERL) @@ -1468,11 +1447,8 @@ _clean : -@erase $(PERLDLL) -@erase $(CORE_OBJ) -if exist $(MINIDIR) rmdir /s /q $(MINIDIR) - -if exist $(MINIDIR) rmdir /s $(MINIDIR) -if exist $(UNIDATADIR1) rmdir /s /q $(UNIDATADIR1) - -if exist $(UNIDATADIR1) rmdir /s $(UNIDATADIR1) -if exist $(UNIDATADIR2) rmdir /s /q $(UNIDATADIR2) - -if exist $(UNIDATADIR2) rmdir /s $(UNIDATADIR2) -@erase $(UNIDATAFILES) -@erase $(WIN32_OBJ) -@erase $(DLL_OBJ)