Index: scripts/config.bat =================================================================== diff -u -r0dad97fd1b1e4c79c037b3b638181c2214c0d8f8 -r879a575c6688f971eb22fdfbefdd76aee4b69fac --- scripts/config.bat (.../config.bat) (revision 0dad97fd1b1e4c79c037b3b638181c2214c0d8f8) +++ scripts/config.bat (.../config.bat) (revision 879a575c6688f971eb22fdfbefdd76aee4b69fac) @@ -9,7 +9,7 @@ SET TmpDir=%CurrentDir%\tmp SET MainProjectDir=%TmpDir%\copyhandler -if not exist "%ScriptDir%\make_package.bat" ( +if not exist "%ScriptDir%\config.bat" ( echo ERROR: This script needs to be called from its directory. exit /b 1 ) Fisheye: tag 0dad97fd1b1e4c79c037b3b638181c2214c0d8f8 is not in file scripts/make_existing_release.bat Fisheye: Tag 879a575c6688f971eb22fdfbefdd76aee4b69fac refers to a dead (removed) revision in file `scripts/make_existing_package.bat'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: tag 0dad97fd1b1e4c79c037b3b638181c2214c0d8f8 is not in file scripts/make_release.bat Fisheye: Tag 879a575c6688f971eb22fdfbefdd76aee4b69fac refers to a dead (removed) revision in file `scripts/make_package.bat'. Fisheye: No comparison available. Pass `N' to diff? Index: scripts/symsrv_add_release.bat =================================================================== diff -u --- scripts/symsrv_add_release.bat (revision 0) +++ scripts/symsrv_add_release.bat (revision 879a575c6688f971eb22fdfbefdd76aee4b69fac) @@ -0,0 +1,39 @@ +@echo off + +rem Mark the changes as local ones +setlocal + +if [%1] == [] ( + echo Usage: symsrv_add_release.bat ^ [dir_with_packages] + goto end +) + +echo --- Initializing ----------------------------------------------- +echo * Reading configuration... +call config.bat +if errorlevel 1 ( + goto error +) + +SET PackagesDir=%OutputDir% +if NOT [%2] == [] ( + SET PackagesDir=%2 +) + +echo --- Preparing files -------------------------------------------- +echo * Scanning directory %PackagesDir% for packages... +for /R %PackagesDir% %%f in (*.zip) do ( + call symsrv_add_single_package.bat "%%f" "%1" + if errorlevel 1 ( + goto error + ) +) + +echo * Done + +goto end + +:error + echo ERROR: encountered an error while processing packages. + +:end Index: scripts/symsrv_add_single_package.bat =================================================================== diff -u --- scripts/symsrv_add_single_package.bat (revision 0) +++ scripts/symsrv_add_single_package.bat (revision 879a575c6688f971eb22fdfbefdd76aee4b69fac) @@ -0,0 +1,71 @@ +@echo off + +rem Mark the changes as local ones +setlocal + +if [%1] == [] ( + echo "Usage: symsrv.bat package_path symsrv_path" + goto end +) + +if [%2] == [] ( + echo "Usage: symsrv.bat package_path symsrv_path" + goto end +) + +echo --- Initializing ----------------------------------------------- +echo * Reading configuration... +call config.bat +if errorlevel 1 ( + goto error +) +echo * Preparing environment... +call internal\prepare_env.bat +if errorlevel 1 ( + goto error +) + +echo --- Processing files -------------------------------------------- +echo * Extracting files... + +SET OutDir=%TmpDir%\symbols +if exist "%OutDir%" ( + rmdir /S /Q "%OutDir%" >nul + if exist "%OutDir%" ( + echo ERROR: Deleting the temporary folder failed. + exit /b 1 + ) +) + +mkdir "%OutDir%" +if errorlevel 1 ( + echo ERROR: Creating temporary directory failed. + goto error +) + +rem Unpack archive +7z e -o%OutDir% %1 >nul +if errorlevel 1 ( + echo ERROR: Unpacking archive failed. + goto error +) + +echo * Adding files to symbol server directory... + +symstore add /r /f "%OutDir%" /s "%2" /t "Copy Handler" /v "%1" +if errorlevel 1 ( + echo ERROR: Storing symbols failed. + goto error +) + +echo * Cleaning up files... +rmdir /S /Q "%OutDir%" + +echo * Done + +goto end + +:error +echo * Error processing files. + +:end Index: scripts/upload_release.bat =================================================================== diff -u --- scripts/upload_release.bat (revision 0) +++ scripts/upload_release.bat (revision 879a575c6688f971eb22fdfbefdd76aee4b69fac) @@ -0,0 +1,31 @@ +@echo off + +rem Mark the changes as local ones +setlocal + +echo --- Initializing ----------------------------------------------- +echo * Reading configuration... +call config.bat +if errorlevel 1 ( + goto error +) + +echo --- Uploading files -------------------------------------------- +echo cd uploads >"%TmpDir%\filelist.txt" +for %%f in (out\*.*) do echo put %%f >>"%TmpDir%\filelist.txt" + + +psftp -v -b "%TmpDir%\filelist.txt" ixen@frs.sourceforge.net +if errorlevel 1 ( + goto error +) + +echo * Done + +goto end + +:error +echo * Error uploading files. +del "%TmpDir%\filelist.txt" + +:end