[scribus-dev] Is there a way to show the compiled build revision # for a dev build

Craig Bradney cbradney at scribus.info
Tue Jun 3 07:40:43 UTC 2014





> On 3 Jun 2014, at 8:25, "a.l.e" <ale.comp_06 at xox.ch> wrote:
> 
>> On 03/06/14 07:16, Craig Bradney wrote:
>>> On 3/06/2014 3:57 am, Gregory Pittman wrote:
>>>> On 06/02/2014 09:49 PM, Gregory Pittman wrote:
>>>>> On 06/02/2014 06:49 PM, Kunda Loves Scribus wrote:
>>>>> On Tue, Jun 3, 2014 at 1:42 AM, Craig Bradney <cbradney at scribus.info
>>>>> <mailto:cbradney at scribus.info>> wrote:
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>>     > On 3 Jun 2014, at 0:31, Craig Bradney <cbradney at zip.com.au
>>>>>     <mailto:cbradney at zip.com.au>> wrote:
>>>>>     >
>>>>>     > Hi
>>>>>     >
>>>>>     > I have added this capability tonight thanks to
>>>>>     >
>>>>> http://stackoverflow.com/questions/3780667/use-cmake-to-get-build-time-svn-revision
>>>>>     >
>>>>>     > Test it and see. If it all breaks for you tomorrow.. just
>>>>>     comment out the new lines until I can fix.
>>>>>     > Works here ok.
>>>>>     >
>>>>>     >
>>>>> 
>>>>>     @Jean : as you don't use CMake I guess just #ifndef the about code
>>>>>     out for Windoze builds. :)
>>>>> 
>>>>>     Or you will have to write a script to pull in the svn version too.
>>>>> 
>>>>>     Craig
>>>>> 
>>>>> Craig,
>>>>> 1st, you are a rockstar!!
>>>>> 2nd, feedback: I compiled from r19172 on OS X 10.8.5
>>>>> Opened the About Scribus dialog and I see:
>>>>> https://www.dropbox.com/s/504gx6ny4x5p4ug/r19172-About-Scribus-screenshot.png
>>>> Worked Ok here on 19177 on Fedora 20.
>>>> One thing you have to realize is that this About Date is only periodically changed. It will not be
>>>> the exact day you build, but whatever the date was set to when last changed. I think it's in
>>>> about.cpp
>>> Near the top of about.cpp you can find it hard-coded:
>>> 
>>>         QString BUILD_DAY = "29";
>>>         QString BUILD_MONTH = CommonStrings::may;
>>>         QString BUILD_YEAR = "2014";
>>> 
>>> Greg
>> Correct. And that will not be auto set.
> 
> any rationals for this?
> 
> personally, i find the "bump date"s in the logs a bit strange...
> 
> 

We commit any small fixes, so that's where the revision number helps. Maybe we should just use the date next to the version number, or remove it entirely.

Craig


More information about the scribus-dev mailing list