| 87 {{- end}} |
87 {{- end}} |
| 88 |
88 |
| 89 # configure |
89 # configure |
| 90 configure= |
90 configure= |
| 91 {{- if $build.Configure}} |
91 {{- if $build.Configure}} |
| 92 {{ $build.Configure }} > $log_dir/$configure_log 2>&1 |
92 cat > uwbuild-configure.sh << '__CONFIGURE_EOF__' |
| |
93 #!/bin/sh |
| |
94 {{ $build.Configure }} |
| |
95 __CONFIGURE_EOF__ |
| |
96 chmod +x uwbuild-configure.sh |
| |
97 ./uwbuild-configure > $log_dir/$configure_log 2>&1 |
| 93 configure=$? |
98 configure=$? |
| 94 {{- end}} |
99 {{- end}} |
| 95 |
100 |
| 96 # compile |
101 # compile |
| 97 compile= |
102 compile= |
| 98 {{- if $build.Compile}} |
103 {{- if $build.Compile}} |
| 99 {{ $build.Compile }} > $log_dir/$compile_log 2>&1 |
104 cat > uwbuild-compile.sh << '__COMPILE_EOF__' |
| |
105 #!/bin/sh |
| |
106 {{ $build.Compile }} |
| |
107 __COMPILE_EOF__ |
| |
108 chmod +x uwbuild-compile.sh |
| |
109 ./uwbuild-compile.sh > $log_dir/$compile_log 2>&1 |
| 100 compile=$? |
110 compile=$? |
| 101 {{- end}} |
111 {{- end}} |
| 102 |
112 |
| 103 # check |
113 # check |
| 104 check= |
114 check= |
| 105 {{- if $build.Check}} |
115 {{- if $build.Check}} |
| 106 {{ $build.Check }} > $log_dir/$check_log 2>&1 |
116 cat > uwbuild-check.sh << '__CHECK_EOF__' |
| |
117 #!/bin/sh |
| |
118 {{ $build.Check }} |
| |
119 __CHECK_EOF__ |
| |
120 chmod +x uwbuild-check.sh |
| |
121 ./uwbuild-check.sh > $log_dir/$check_log 2>&1 |
| 107 check=$? |
122 check=$? |
| 108 {{- end}} |
123 {{- end}} |
| 109 |
124 |
| 110 # write result |
125 # write result |
| 111 echo "write result to $result_file" |
126 echo "write result to $result_file" |