[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] repro-template.bat: Avoid three "File not found" errors when run for the first time

From: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Mon, 16 Jan 2012 08:04:42 +0400

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.kolinko_at_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
]]]

Received on 2012-01-16 05:05:30 CET

This is an archived mail posted to the Subversion Dev mailing list.