Author: cwittich
Date: Sat Jul 29 23:46:27 2006
New Revision: 23361
URL:
http://svn.reactos.org/svn/reactos?rev=23361&view=rev
Log:
buildbot scripts
Added:
trunk/tools/buildbot/
trunk/tools/buildbot/scripts/
trunk/tools/buildbot/scripts/Linux/
trunk/tools/buildbot/scripts/Linux/makeclean
trunk/tools/buildbot/scripts/Linux/uploadiso
trunk/tools/buildbot/scripts/Windows/
trunk/tools/buildbot/scripts/Windows/login.cmd
trunk/tools/buildbot/scripts/Windows/makeclean.cmd
trunk/tools/buildbot/scripts/Windows/uploadiso.cmd
Added: trunk/tools/buildbot/scripts/Linux/makeclean
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/buildbot/scripts/Linux/makec…
==============================================================================
--- trunk/tools/buildbot/scripts/Linux/makeclean (added)
+++ trunk/tools/buildbot/scripts/Linux/makeclean Sat Jul 29 23:46:27 2006
@@ -1,0 +1,14 @@
+#!/bin/sh
+
+echo Cleaning...
+
+if [ -f makefile.auto ]
+then
+ rm makefile.auto
+fi
+
+rm -r obj-i386
+rm -r output-i386
+rm *.iso
+echo done.
+exit 0
Added: trunk/tools/buildbot/scripts/Linux/uploadiso
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/buildbot/scripts/Linux/uploa…
==============================================================================
--- trunk/tools/buildbot/scripts/Linux/uploadiso (added)
+++ trunk/tools/buildbot/scripts/Linux/uploadiso Sat Jul 29 23:46:27 2006
@@ -1,0 +1,56 @@
+#!/bin/sh
+
+if [ -f reactos.iso ]
+then
+ echo No ISO file found.
+ exit 2
+fi
+
+echo Getting revision number...
+REV=`svnversion .`
+echo Revision $REV.
+
+echo Compressing iso files...
+cp ReactOS.iso bootcd-$REV-$1.iso
+cp ReactOS-LiveCD.iso livecd-$REV-$1.iso
+
+7za a -bd -t7z bootcd-$REV-$1.7z bootcd-$REV-$1.iso -mx9
+7za a -bd -t7z livecd-$REV-$1.7z livecd-$REV-$1.iso -mx9
+
+if [ -f bootcd-$REV-$1.iso ]
+then
+ rm bootcd-$REV-$1.iso
+fi
+
+if [ -f livecd-$REV-$1.iso ]
+then
+ rm livecd-$REV-$1.iso
+fi
+
+echo done.
+echo Uploading rev $REV BootCD and LiveCD...
+
+ftp -n
svn.reactos.org <<EOF
+user username password
+cd www
+cd iso
+binary
+put bootcd-$REV-$1.7z
+put livecd-$REV-$1.7z
+bye
+EOF
+
+if [ -f bootcd-$REV-$1.7z ]
+then
+ rm bootcd-$REV-$1.7z
+fi
+
+if [ -f livecd-$REV-$1.7z ]
+then
+ rm livecd-$REV-$1.7z
+fi
+
+echo done.
+exit 0
+
+
Added: trunk/tools/buildbot/scripts/Windows/login.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/buildbot/scripts/Windows/log…
==============================================================================
--- trunk/tools/buildbot/scripts/Windows/login.cmd (added)
+++ trunk/tools/buildbot/scripts/Windows/login.cmd Sat Jul 29 23:46:27 2006
@@ -1,0 +1,3 @@
+@echo off
+echo username>>ftp.dat
+echo password>>ftp.dat
Added: trunk/tools/buildbot/scripts/Windows/makeclean.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/buildbot/scripts/Windows/mak…
==============================================================================
--- trunk/tools/buildbot/scripts/Windows/makeclean.cmd (added)
+++ trunk/tools/buildbot/scripts/Windows/makeclean.cmd Sat Jul 29 23:46:27 2006
@@ -1,0 +1,12 @@
+@echo off
+
+echo Cleaning...
+
+if exist makefile.auto del /q /s makefile.auto
+rd /q /s obj-i386>nul
+rd /q /s output-i386>nul
+del /s *.gch>nul
+del /s *.o >nul
+del *.iso >nul
+echo done.
+exit /b0
Added: trunk/tools/buildbot/scripts/Windows/uploadiso.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/buildbot/scripts/Windows/upl…
==============================================================================
--- trunk/tools/buildbot/scripts/Windows/uploadiso.cmd (added)
+++ trunk/tools/buildbot/scripts/Windows/uploadiso.cmd Sat Jul 29 23:46:27 2006
@@ -1,0 +1,40 @@
+@echo off
+
+if not exist reactos.iso goto Err
+
+echo Getting revision number...
+for /f "usebackq" %%i IN (`svnversion .`) DO @set REV=%%i
+echo Revision: %REV%.
+
+echo Compressing iso files...
+
+copy reactos.iso bootcd-%REV%-%1.iso >nul
+copy reactos-livecd.iso livecd-%REV%-%1.iso >nul
+
+7z a -bd -t7z bootcd-%REV%-%1.7z bootcd-%REV%-%1.iso -mx9
+7z a -bd -t7z livecd-%REV%-%1.7z livecd-%REV%-%1.iso -mx9
+
+if exist bootcd-%REV%-%1.iso del bootcd-%REV%-%1.iso
+if exist livecd-%REV%-%1.iso del livecd-%REV%-%1.iso
+
+echo done.
+echo Uploading rev %REV% BootCD and LiveCD...
+
+echo open svn.reactos.ru >ftp.dat
+call login.cmd
+echo cd www >>ftp.dat
+echo cd iso >>ftp.dat
+echo binary >>ftp.dat
+echo put bootcd-%REV%-%1.7z >>ftp.dat
+echo put livecd-%REV%-%1.7z >>ftp.dat
+echo bye >>ftp.dat
+
+ftp -s:ftp.dat
+if exist bootcd-%REV%-%1.7z del bootcd-%REV%-%1.7z
+if exist livecd-%REV%-%1.7z del livecd-%REV%-%1.7z
+echo done.
+exit /b0
+
+:Err
+echo No ISO file found.
+exit /b2