Author: peterw Date: Sun Nov 4 17:42:00 2007 New Revision: 30116
URL: http://svn.reactos.org/svn/reactos?rev=30116&view=rev Log: - Create the APPDATA\RosBE if required.
Modified: trunk/tools/RosBE-Windows/Root/Build.cmd trunk/tools/RosBE-Windows/Root/RosBE.cmd
Modified: trunk/tools/RosBE-Windows/Root/Build.cmd URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/Build.cmd?... ============================================================================== --- trunk/tools/RosBE-Windows/Root/Build.cmd (original) +++ trunk/tools/RosBE-Windows/Root/Build.cmd Sun Nov 4 17:42:00 2007 @@ -78,20 +78,11 @@
:: :: Check if writing logs is enabled, if so check if our log directory -:: exists, if it doesn't, create it, finally if creating the -:: directory fails then fall back on the current directory. +:: exists, if it doesn't, create it. :: if %_ROSBE_WRITELOG% == 1 ( if not exist "%_ROSBE_LOGDIR%." ( mkdir "%_ROSBE_LOGDIR%" 1> NUL 2> NUL - if errorlevel 1 ( - echo. - echo *** Writing logs requested, but the log directory *** - echo *** doesn't exist and can't be created. Logs will be *** - echo *** created in the current directory as a fallback. *** - echo. - set _ROSBE_LOGDIR=%CD% - ) ) )
Modified: trunk/tools/RosBE-Windows/Root/RosBE.cmd URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/RosBE.cmd?... ============================================================================== --- trunk/tools/RosBE-Windows/Root/RosBE.cmd (original) +++ trunk/tools/RosBE-Windows/Root/RosBE.cmd Sun Nov 4 17:42:00 2007 @@ -28,6 +28,13 @@ set _ROSBE_LOGDIR=%CD%\RosBE-Logs set _ROSBE_OBJPATH= set _ROSBE_OUTPATH= + +:: +:: Check if RosBE data directory exists, if not, create it. +:: +if not exist "%APPDATA%\RosBE." ( + mkdir "%APPDATA%\RosBE" +)
:: :: Check if the user has used the options utility and