From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfrnB-0001bI-6x for qemu-devel@nongnu.org; Fri, 24 May 2013 09:12:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ufrn4-00005b-R0 for qemu-devel@nongnu.org; Fri, 24 May 2013 09:12:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufrn4-00005W-J1 for qemu-devel@nongnu.org; Fri, 24 May 2013 09:12:14 -0400 Message-ID: <519F67B6.6030206@redhat.com> Date: Fri, 24 May 2013 15:14:30 +0200 From: Laszlo Ersek MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH v3 03/11] Add a script to extract VSS SDK headers on POSIX system List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tomoki Sekiyama Cc: "qemu-devel@nongnu.org" , "mdroth@linux.vnet.ibm.com" , "lcapitulino@redhat.com" , "vrozenfe@redhat.com" , "pbonzini@redhat.com" , Seiji Aguchi , "areis@redhat.com" On 05/21/13 23:02, Tomoki Sekiyama wrote: > Maybe it also should have an additional check and a message to install > Msitools for the case msiextract isn't exectable. Right. One POSIX-y way would be command -v msiextract >/dev/null and checking the exit status. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html Alternatively, just go ahead calling it, and if the exit status is 126 or 127, assume it is not (correctly) installed and emit an extra hint afterwards: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_01_01 Laszlo