(svn r22008) -Add [FS#4470]: log the command that invocated configure in config.log
This commit is contained in:
12
config.lib
12
config.lib
@@ -6,8 +6,13 @@
|
|||||||
# See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
# See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
log() {
|
log() {
|
||||||
if [ $1 = "1" ]; then echo "$2"; fi
|
if [ $1 = "1" ]; then
|
||||||
echo "$2" >> $config_log
|
shift
|
||||||
|
echo "$@"
|
||||||
|
else
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
echo "$@" >> $config_log
|
||||||
}
|
}
|
||||||
|
|
||||||
set_default() {
|
set_default() {
|
||||||
@@ -455,6 +460,7 @@ detect_params() {
|
|||||||
|
|
||||||
# Clean the logfile
|
# Clean the logfile
|
||||||
echo "" > $config_log
|
echo "" > $config_log
|
||||||
|
log 2 "Invocation: $0 $*"
|
||||||
}
|
}
|
||||||
|
|
||||||
save_params() {
|
save_params() {
|
||||||
@@ -531,7 +537,7 @@ check_params() {
|
|||||||
check_build
|
check_build
|
||||||
check_host
|
check_host
|
||||||
|
|
||||||
# Check for universal builds; they only make sense for OSX, so fail if enabled for another OS
|
# Check for universal builds; they only make sense for OSX, so fail if enabled for another OS
|
||||||
if [ "$enable_universal" = "0" ]; then
|
if [ "$enable_universal" = "0" ]; then
|
||||||
log 1 "checking universal build... no"
|
log 1 "checking universal build... no"
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user