Re: [PATCHi v3] kconfig qconf: port to QT4

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michal Marek
Date: Monday, August 2, 2010 - 2:29 pm

On 30.7.2010 13:15, Alexander Stein wrote:

You are using pkg-config now.



Thanks, that makes my life easier.



OK.



A couple of issues here: 1) The script is running under set -e, so if
there is no Qt4, it will exit right away. 2) The '$?' is interpreted by
make, you need to say '$$?' if you want the shell see '$?'. Last but not
least, there is no C-style arithmetics in the [ builtin, [ ! 0 ] and [ !
1 ] will both evaluate to failure. You probably meant [ $$? -ne 0 ], but
it still wouldn't work because of 1). Just use

  if ! pkg-config --exists QtCore 2> /dev/null; then
    ... qt 3 ...
  else
    ... qt 4 ...
  fi

When I fix it manually, it works OK both under Qt4 and Qt3, which is
great, but please submit a patch that you tested yourself. If you're
quick (but not too quick to omit testing), I'll push it in this merge
window.

thanks,
Michal
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] kconfig qconf: port to QT4, Michal Marek, (Mon Jun 7, 5:45 am)
Re: [PATCH] kconfig qconf: port to QT4, Alexander Stein, (Mon Jun 7, 10:12 am)
Re: [PATCH] kconfig qconf: port to QT4, Gene Heskett, (Mon Jun 7, 11:01 am)
Re: [PATCH] kconfig qconf: port to QT4, Michal Marek, (Mon Jun 7, 2:29 pm)
Re: [PATCH v2] kconfig qconf: port to QT4, Michal Marek, (Mon Jul 26, 5:44 am)
Re: [PATCH v2] kconfig qconf: port to QT4, Michal Marek, (Mon Jul 26, 5:47 am)
[PATCHi v3] kconfig qconf: port to QT4, Alexander Stein, (Fri Jul 30, 4:15 am)
Re: [PATCHi v3] kconfig qconf: port to QT4, Ed Tomlinson, (Sun Aug 1, 7:32 am)
[PATCH] kconfig qconf: port to QT4, Alexander Stein, (Sun Aug 1, 12:28 pm)
Re: [PATCH] kconfig qconf: port to QT4, Ed Tomlinson, (Mon Aug 2, 5:01 am)
Re: [PATCHi v3] kconfig qconf: port to QT4, Michal Marek, (Mon Aug 2, 2:29 pm)
[PATCH v4] kconfig qconf: port to QT4, Alexander Stein, (Tue Aug 31, 8:34 am)
Re: [PATCH v4] kconfig qconf: port to QT4, Michal Marek, (Wed Sep 1, 7:57 am)
Re: [PATCH] kconfig qconf: port to QT4, Ed Tomlinson, (Sat Sep 18, 7:22 am)
Re: [PATCH] kconfig qconf: port to QT4, Michal Marek, (Mon Sep 20, 5:03 am)
[PATCH 1/2] kconfig qconf: port to QT4, Alexander Stein, (Tue Sep 21, 10:31 am)