Author: cmpilato
Date: Mon Jan 16 13:12:19 2012
New Revision: 1231988

URL: http://svn.apache.org/viewvc?rev=1231988&view=rev
Log:
Avoid three "File not found" messages from OS when repro-template.bat
and repro-template.sh are run for the first time and "repos", "wc" and
"import-me" subdirectories do not exist.

* site/publish/docs/community-guide/repro-template.bat,
* site/publish/docs/community-guide/repro-template.sh
  Check existence of subdirectories before trying to delete them.

Patch by: Konstantin Kolinko <[email protected]>,
          me

Modified:
    subversion/site/publish/docs/community-guide/repro-template.bat
    subversion/site/publish/docs/community-guide/repro-template.sh

Modified: subversion/site/publish/docs/community-guide/repro-template.bat
URL: 
http://svn.apache.org/viewvc/subversion/site/publish/docs/community-guide/repro-template.bat?rev=1231988&r1=1231987&r2=1231988&view=diff
==============================================================================
--- subversion/site/publish/docs/community-guide/repro-template.bat (original)
+++ subversion/site/publish/docs/community-guide/repro-template.bat Mon Jan 16 
13:12:19 2012
@@ -28,7 +28,9 @@ set URL=%URL:\=/%
 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

Modified: subversion/site/publish/docs/community-guide/repro-template.sh
URL: 
http://svn.apache.org/viewvc/subversion/site/publish/docs/community-guide/repro-template.sh?rev=1231988&r1=1231987&r2=1231988&view=diff
==============================================================================
--- subversion/site/publish/docs/community-guide/repro-template.sh (original)
+++ subversion/site/publish/docs/community-guide/repro-template.sh Mon Jan 16 
13:12:19 2012
@@ -31,7 +31,9 @@ LC_ALL=C; export LC_ALL
 # URL=svn://localhost/repos
 URL=file:///`pwd`/repos
 
-rm -rf repos wc import-me
+if [ -e repos ]; then rm -rf repos; fi
+if [ -e wc ]; then rm -rf wc; fi
+if [ -e import-me ]; then rm -rf import-me; fi
 
 ${SVNADMIN} create repos
 


Reply via email to