Index: apps/build.tcl =================================================================== diff -u -r89fc03bf0f5f882df13b2f1c026d13c9108b65da -r457f8a80e21930a063973e8bf71594848a1de696 --- apps/build.tcl (.../build.tcl) (revision 89fc03bf0f5f882df13b2f1c026d13c9108b65da) +++ apps/build.tcl (.../build.tcl) (revision 457f8a80e21930a063973e8bf71594848a1de696) @@ -5,7 +5,7 @@ package require tar package require platform -proc ::build {HOMEDIR BUILDDIR TCLTAG args} { +proc ::build {HOMEDIR BUILDDIR TCLTAG {TOOLCHAIN autoconf-tea}} { set tarball "tcl.tar.gz" cd $HOMEDIR @@ -49,14 +49,26 @@ # exec >@stdout 2>@stderr bash -lc "cd && pwd" # exec >@stdout 2>@stderr bash -lc "cd && ls -la" - exec >@stdout 2>@stderr bash -lc "./configure --libdir=$tclDir --enable-64bit" - exec >@stdout 2>@stderr bash -lc "make" - - set tclSh [file join $tclDir tclsh] - - cd $BUILDDIR - exec >@stdout 2>@stderr bash -lc "./configure --with-tcl=$tclDir" - exec >@stdout 2>@stderr bash -lc "make test" + switch -exact -- $TOOLCHAIN { + autoconf-tea { + exec >@stdout 2>@stderr bash -lc "./configure --libdir=$tclDir --enable-64bit" + exec >@stdout 2>@stderr bash -lc "make" + + cd $BUILDDIR + exec >@stdout 2>@stderr bash -lc "./configure --with-tcl=$tclDir" + exec >@stdout 2>@stderr bash -lc "make test" + } + nmake-tea { + exec >@stdout 2>@stderr nmake -nologo -f makefile.vc TCLDIR=$tclDir release + + cd $BUILDDIR + exec >@stdout 2>@stderr nmake -nologo -f makefile.vc TCLDIR=$tclDir release + exec >@stdout 2>@stderr nmake -nologo -f makefile.vc TCLDIR=$tclDir test + } + default { + throw [list BUILD UNSUPPORTED $TOOLCHAIN] \ + "Unsupported toolchain: '$TOOLCHAIN'." + } } # puts ===$::argv