From 5dd8622110669e2661e5de9fecea003e7b133a39 Mon Sep 17 00:00:00 2001 From: Daniel Reimer Date: Sat, 23 Aug 2008 20:05:08 +0000 Subject: [PATCH] Some more work on the updater. svn path=/trunk/tools/RosBE/; revision=798 --- RosBE-Windows/Root/update.cmd | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/RosBE-Windows/Root/update.cmd b/RosBE-Windows/Root/update.cmd index 2fdfe04..5810fc5 100644 --- a/RosBE-Windows/Root/update.cmd +++ b/RosBE-Windows/Root/update.cmd @@ -11,14 +11,18 @@ :: The Update Server set url=www.foo.bar +:: First check for a new Updater +"%_ROSBE_BASEDIR%\Tools\wget.exe" -N %url%/update.cmd +"%_ROSBE_BASEDIR%\update.cmd" + :: PS1 Files -if exist "%_ROSBE_BASEDIR%\"%_ROSBE_BASEDIR%\Build.ps1" ( +if exist "%_ROSBE_BASEDIR%\Build.ps1" ( "%_ROSBE_BASEDIR%\Tools\wget.exe" -N %url%/Build.ps1 ) -if exist "%_ROSBE_BASEDIR%\"%_ROSBE_BASEDIR%\Clean.ps1" ( +if exist "%_ROSBE_BASEDIR%\Clean.ps1" ( "%_ROSBE_BASEDIR%\Tools\wget.exe" -N %url%/Clean.ps1 ) -if exist "%_ROSBE_BASEDIR%\"%_ROSBE_BASEDIR%\Help.ps1" ( +if exist "%_ROSBE_BASEDIR%\Help.ps1" ( "%_ROSBE_BASEDIR%\Tools\wget.exe" -N %url%/Help.ps1 ) if exist "%_ROSBE_BASEDIR%\MinGW.ps1" ( @@ -74,4 +78,18 @@ if exist "%_ROSBE_BASEDIR%\chdefdir.cmd" ( "%_ROSBE_BASEDIR%\Tools\wget.exe" -N %url%/RosBE.mac "%_ROSBE_BASEDIR%\Tools\wget.exe" -N %url%/rosbe-gcc-env.cmd "%_ROSBE_BASEDIR%\Tools\wget.exe" -N %url%/TimeDate.cmd -"%_ROSBE_BASEDIR%\Tools\wget.exe" -N %url%/update.cmd + +:: Load GCC and Tool SRC packages +"%_ROSBE_BASEDIR%\Tools\wget.exe" -N %url%/GCC.7z +"%_ROSBE_BASEDIR%\Tools\wget.exe" -N %url%/Tools.7z + +:: Extract GCC +"%_ROSBE_BASEDIR%\Tools\7z.exe" x GCC.7z "%_ROSBE_BASEDIR%\4.1.3" +"%_ROSBE_BASEDIR%\Tools\7z.exe" x Tools.7z "%TEMP%" + +:: Build the tools +make -f %TEMP%\makefile +copy %TEMP%\*.exe "%_ROSBE_BASEDIR%\Tools" + +:: Unload Vars +set url=