mirror of https://github.com/OpenTTD/OpenTTD
(svn r22008) -Add [FS#4470]: log the command that invocated configure in config.log
parent
79fd8a362b
commit
264ed733e8
10
config.lib
10
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/>.
|
||||
|
||||
log() {
|
||||
if [ $1 = "1" ]; then echo "$2"; fi
|
||||
echo "$2" >> $config_log
|
||||
if [ $1 = "1" ]; then
|
||||
shift
|
||||
echo "$@"
|
||||
else
|
||||
shift
|
||||
fi
|
||||
echo "$@" >> $config_log
|
||||
}
|
||||
|
||||
set_default() {
|
||||
|
@ -455,6 +460,7 @@ detect_params() {
|
|||
|
||||
# Clean the logfile
|
||||
echo "" > $config_log
|
||||
log 2 "Invocation: $0 $*"
|
||||
}
|
||||
|
||||
save_params() {
|
||||
|
|
Loading…
Reference in New Issue