testbot/build: Tweak Reconfig.pl to automatically create the build-xxx directories.

Francois Gouget fgouget at codeweavers.com
Fri Oct 5 04:16:21 CDT 2012


This makes it possible to use Reconfig.pl to simplify the build VM setup.
---
 testbot/bin/Reconfig.pl |    2 ++
 testbot/doc/INSTALL.txt |    3 +++
 2 files changed, 5 insertions(+)

diff --git a/testbot/bin/Reconfig.pl b/testbot/bin/Reconfig.pl
index f72ba6c..60018d9 100755
--- a/testbot/bin/Reconfig.pl
+++ b/testbot/bin/Reconfig.pl
@@ -65,6 +65,7 @@ sub GitPull
 
 sub BuildNative
 {
+  mkdir "$DataDir/build-native" if (! -d "$DataDir/build-native");
   system("cd $DataDir/build-native && " .
          "rm -rf * && " .
          "../wine-git/configure --enable-win64 --without-x --without-freetype " .
@@ -86,6 +87,7 @@ sub BuildCross
   my $Bits = $_[0];
 
   my $Host = ($Bits == 64 ? "x86_64-w64-mingw32" : "i686-pc-mingw32");
+  mkdir "$DataDir/build-mingw$Bits" if (! -d "$DataDir/build-mingw$Bits");
   system("cd $DataDir/build-mingw$Bits && " .
          "rm -rf * && " .
          "../wine-git/configure --host=$Host --with-wine-tools=../build-native " .
diff --git a/testbot/doc/INSTALL.txt b/testbot/doc/INSTALL.txt
index 27c4053..d7c093e 100644
--- a/testbot/doc/INSTALL.txt
+++ b/testbot/doc/INSTALL.txt
@@ -141,6 +141,9 @@ Dependencies:
     mkdir $HOME/tools/testbot/var $HOME/tools/testbot/log
     chmod g+w $HOME/tools/testbot/var $HOME/tools/testbot/log
 - Clone the Wine git repository to $HOME/tools/testbot/var/wine-git.
+- In the winetest account, run Reconfig.pl.
+  Check $HOME/tools/testbot/log/Reconfig.log to make sure it
+  succeeded.
 - Take a snapshot of the running VM. Make sure restoring this snapshot
   will result in a running build VM.
 - Register this VM as a build VM on the web site.
-- 
1.7.10.4




More information about the wine-patches mailing list