Hi!

When repro-template.bat [1] is run for the first time, it prints 3
error messages "File not found" (in the language of the OS).

Those error messages are caused by an attempt to unconditionally
delete the "repos", "wc" and "import-me" subdirectories, that do not
exist when the bat file is run for the first time.

The attached patch fixes this issue. It is to be applied to
https://svn.apache.org/repos/asf/subversion/site/publish

[1] http://subversion.apache.org/docs/community-guide/repro-template.bat

Best regards,
Konstantin Kolinko

[[[
Avoid three "File not found" messages from OS when repro-template.bat is
run for the first time and "repos", "wc" and "import-me" subdirectories do
not exist.

Patch by: Konstantin Kolinko <knst.koli...@gmail.com>

* docs/community-guide/repro-template.bat: Check existence of subdirectories
  before trying to delete them.
]]]

[[[
Index: docs/community-guide/repro-template.bat
===================================================================
--- docs/community-guide/repro-template.bat     (revision 1231819)
+++ docs/community-guide/repro-template.bat     (working copy)
@@ -28,7 +28,9 @@
 echo Base url for repo: %URL%

 :cleanAllDirsAndCreateRepo
-rmdir /s /q repos wc import-me
+if exist repos rmdir /s /q repos
+if exist import-me rmdir /s /q import-me
+if exist wc rmdir /s /q wc
 %SVNADMIN% create repos

 :prepareGreekTree
]]]
[[[
Avoid three "File not found" messages from OS when repro-template.bat is
run for the first time and "repos", "wc" and "import-me" subdirectories do
not exist.

Patch by: Konstantin Kolinko <knst.koli...@gmail.com>

* docs/community-guide/repro-template.bat: Check existence of subdirectories
  before trying to delete them.
]]]


Index: docs/community-guide/repro-template.bat
===================================================================
--- docs/community-guide/repro-template.bat     (revision 1231819)
+++ docs/community-guide/repro-template.bat     (working copy)
@@ -28,7 +28,9 @@
 echo Base url for repo: %URL%
 
 :cleanAllDirsAndCreateRepo
-rmdir /s /q repos wc import-me
+if exist repos rmdir /s /q repos
+if exist import-me rmdir /s /q import-me
+if exist wc rmdir /s /q wc
 %SVNADMIN% create repos
 
 :prepareGreekTree

Reply via email to