Clone
Stefan Sobernig <stefan.sobernig@wu.ac.at>
committed
on 08 Apr 19
Make calls less verbose, are we hitting a limit?
2.3 + 11 more
apps/build.tcl (+2 -2)
36 36   set dir [expr {[string match "win*" [platform::generic]]?"win":"unix"}]
37 37  
38 38   set tclRoot [file normalize tcl]
39 39   set tclDir [file join $tclRoot $dir]
40 40
41 41   # puts pwd([pwd])=[glob *]
42 42   # puts tclDir($tclDir)=[glob $tclDir/*]
43 43  
44 44   set buildDir [pwd]
45 45  
46 46   cd $tclDir
47 47
48 48   # puts ENV=$::env(PATH)
49 49   # puts ENV=$::env(HOME)
50 50   # exec >@stdout 2>@stderr bash -lc "echo \$PATH"
51 51   # exec >@stdout 2>@stderr bash -lc "cd && pwd"
52 52   # exec >@stdout 2>@stderr bash -lc "cd && ls -la"
53 53  
54 54   switch -exact -- $TOOLCHAIN {
55 55     autoconf-tea {
56         exec >@stdout 2>@stderr bash -lc "./configure --libdir=$tclDir --enable-64bit"
57         exec >@stdout 2>@stderr bash -lc "make"
  56       exec bash -lc "./configure --libdir=$tclDir --enable-64bit"
  57       exec bash -lc "make"
58 58      
59 59       cd $BUILDDIR
60 60       puts BUILDDIR=$BUILDDIR,PWD=[pwd],INSTALLDIR=$INSTALLDIR
61 61       exec >@stdout 2>@stderr bash -lc "./configure --prefix=$INSTALLDIR --exec-prefix=$INSTALLDIR --with-tcl=$tclDir"
62 62       exec >@stdout 2>@stderr bash -lc "make test"
63 63       exec >@stdout 2>@stderr bash -lc "make install"
64 64     }
65 65     nmake-tea {
66 66       exec >@stdout 2>@stderr nmake -nologo -f makefile.vc TCLDIR=$tclRoot release
67 67      
68 68       cd [file join $BUILDDIR win]
69 69      
70 70       exec >@stdout 2>@stderr nmake -nologo -f makefile.vc TCLDIR=$tclRoot all
71 71       exec >@stdout 2>@stderr nmake -nologo -f makefile.vc TCLDIR=$tclRoot test
72 72     }
73 73     default {
74 74       throw [list BUILD UNSUPPORTED $TOOLCHAIN] \
75 75           "Unsupported toolchain: '$TOOLCHAIN'."
76 76     }
77 77   }