Mercurial > hg > aimc
changeset 297:09f6050303f8
-Added more logging to AIMCopy
-Made OS X build i386 by default
author | tomwalters |
---|---|
date | Tue, 23 Feb 2010 13:09:33 +0000 |
parents | fe5ce00a64f5 |
children | 35a8fbf4ff82 |
files | trunk/SConstruct trunk/src/Main/AIMCopy.cc |
diffstat | 2 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/SConstruct Tue Feb 23 12:47:01 2010 +0000 +++ b/trunk/SConstruct Tue Feb 23 13:09:33 2010 +0000 @@ -117,6 +117,10 @@ else: print('Unsupported compiler: ' + compiler) Exit(1) + +if build_platform == 'darwin': + env.AppendUnique(CPPFLAGS = ['-arch', 'i386']) + env.AppendUnique(LINKFLAGS = ['-arch', 'i386']) if not target_platform == 'win32': # On windows, utf support is builtin for SimpleIni
--- a/trunk/src/Main/AIMCopy.cc Tue Feb 23 12:47:01 2010 +0000 +++ b/trunk/src/Main/AIMCopy.cc Tue Feb 23 13:09:33 2010 +0000 @@ -42,6 +42,7 @@ #include <vector> #include <stdlib.h> +#include <time.h> #include "Modules/Input/ModuleFileInput.h" #include "Modules/BMM/ModuleGammatone.h" @@ -171,7 +172,20 @@ data_file.c_str()); return -1; } + time_t rawtime; + struct tm * timeinfo; + time(&rawtime); + timeinfo = localtime(&rawtime); + + outfile << "# AIM-C AIMCopy\n"; + outfile << "# Run on: " << asctime(timeinfo); + char * descr = getenv("USER"); + if (descr) { + outfile << "# By user: " << descr <<"\n"; + } + outfile << "# Module chain: file_input->gt->hcl->slice->scaler->"; + outfile << "gaussians->out_htk\n"; outfile << "# Module versions:\n"; outfile << "# " << input.id() << " : " << input.version() << "\n"; outfile << "# " << bmm.id() << " : " << bmm.version() << "\n";