Re: [LyX/master] Autotools: read git commit hash at compile time

2014-11-26 Thread Kornel Benko
Am Mittwoch, 26. November 2014 um 11:21:06, schrieb Jean-Marc Lasgouttes > Le 25/11/2014 19:39, Kornel Benko a écrit : > > The way it is now in cmake is to recompile every time the date changes. > > a.) Create temporary file lyx_date.tmp > > b.) check if different to lyx_date.h > > b1.) overw

Re: [LyX/master] Autotools: read git commit hash at compile time

2014-11-26 Thread Jean-Marc Lasgouttes
Le 25/11/2014 19:39, Kornel Benko a écrit : The way it is now in cmake is to recompile every time the date changes. a.) Create temporary file lyx_date.tmp b.) check if different to lyx_date.h b1.) overwrite if yes. Currently we display both date and time in lyx -version. The time has h

Re: [LyX/master] Autotools: read git commit hash at compile time

2014-11-25 Thread Kornel Benko
Am Dienstag, 25. November 2014 um 19:04:45, schrieb Jean-Marc Lasgouttes > Le 25/11/2014 11:55, Kornel Benko a écrit : > > Am Montag, 24. November 2014 um 22:04:10, schrieb Jean-Marc Lasgouttes > > > >> I have not dont anything like lyx_date.h yet. How do you use it? Is it > >> the build date?

Re: [LyX/master] Autotools: read git commit hash at compile time

2014-11-25 Thread Jean-Marc Lasgouttes
Le 25/11/2014 11:55, Kornel Benko a écrit : Am Montag, 24. November 2014 um 22:04:10, schrieb Jean-Marc Lasgouttes I have not dont anything like lyx_date.h yet. How do you use it? Is it the build date? It is the build date. Similar to commit_hash. That's what I thought. It is actually the

Re: [LyX/master] Autotools: read git commit hash at compile time

2014-11-25 Thread Kornel Benko
Am Montag, 24. November 2014 um 22:04:10, schrieb Jean-Marc Lasgouttes > Le 24/11/2014 22:00, Jean-Marc Lasgouttes a écrit : > > commit 0b09424017866d0f1d9dfff8cb54cedaf17b99aa > > Author: Jean-Marc Lasgouttes > > Date: Mon Nov 24 18:39:18 2014 +0100 > > > > Autotools: read git commit has

Re: [LyX/master] Autotools: read git commit hash at compile time

2014-11-24 Thread Jean-Marc Lasgouttes
Le 24/11/2014 22:00, Jean-Marc Lasgouttes a écrit : commit 0b09424017866d0f1d9dfff8cb54cedaf17b99aa Author: Jean-Marc Lasgouttes Date: Mon Nov 24 18:39:18 2014 +0100 Autotools: read git commit hash at compile time Also do as cmake to avoid full recompilation when the hash changes.