Re: Gnome-themes releases and HighContrast-SVG



Il giorno gio, 05/10/2006 alle 11.04 -0400, Rodney Dawes ha scritto: 
> It's quite simple to do. The version check has to be done in configure.
> Just add a bit of code to compare the minor version (split the version
> out into four variables, MAJOR, MINOR, MICRO, and FULL). Then compare
> the MINOR version number to see if it is odd or even. Do something like

Implemented in my cvs sandbox. Thanks for suggestion.

> AM_CONDITIONAL(ENABLE_PLACEHOLDERS, test "x$enable_placeholders" ==
> "xtrue")

The only way to automatically check if GNOMETHEMES_MINOR_VERSION is odd
(no needs to add any --enable-placeholders option) seems to me this:

        AM_CONDITIONAL(ENABLE_PLACEHOLDERS, test `expr $GNOMETHEMES_MINOR_VERSION '%' 2` = "1")
        
It works, but do you think it's correct (= or ==, escaping, expr
availability...)? If so, I'll commit on cvs HEAD soon.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]