From owner-freebsd-questions@FreeBSD.ORG Sun Jan 27 22:48:50 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 803A616A419 for ; Sun, 27 Jan 2008 22:48:50 +0000 (UTC) (envelope-from rambiusparkisanius@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.188]) by mx1.freebsd.org (Postfix) with ESMTP id 1600513C461 for ; Sun, 27 Jan 2008 22:48:49 +0000 (UTC) (envelope-from rambiusparkisanius@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so1429262rvb.43 for ; Sun, 27 Jan 2008 14:48:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=Na5g6GOmc49Qu6C2HkLlDWA5lz3xzueeXK3p8U0JHqc=; b=raOhOzx2IKheRknKlI+NB5YGGHGySz5nEnohl8BKLLHLTUwJizJSGrgXbS0oXt+06Q64K4Ho8UpipDmB5JzTsTbTtn8QmQhaQTZWbjPQOKa60DDmSRFdYrxgTNs3cMIDxHacb9ZyU99I1+Ouw1Bvdu/AjNYtwLarC4upRbrodJw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=lxHO701HqkifEomXYmYB1nlnPM7C3NriJDWI5RMVua0LJ2B9L95mVoeM/xwt12q7Mok4t5k4wf8ejtWE5XMhf31ZNBRrHK/P3c4e+V9muBconhfmHcbjQivzB3S6IZlR8On5hL5OZ1YSuk5eFX8r/7CPzziIbmUD75vNZMZGK5o= Received: by 10.141.212.5 with SMTP id o5mr3022106rvq.20.1201474127802; Sun, 27 Jan 2008 14:48:47 -0800 (PST) Received: by 10.140.161.2 with HTTP; Sun, 27 Jan 2008 14:48:47 -0800 (PST) Message-ID: <89ce7f740801271448x27371cf7lfe5255256fb498ec@mail.gmail.com> Date: Mon, 28 Jan 2008 00:48:47 +0200 From: "Ivan \"Rambius\" Ivanov" To: "FreeBSD Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Slightly OT: Invoking a shell command from a Makeile X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2008 22:48:50 -0000 Hello, I am developing a FreeBSD port and I would like to invoke a shell command from it and assign its output to a variable. The command in question is # make -f /usr/ports/lang/fpc/Makefile -V PORTVERSION and I have verified that it works on the command line. I try to use it in my port's Makefile in the following way: FPCVERSION= `make -f /usr/ports/lang/fpc/Makefile -V PORTVERSION` but it fails with the following error Syntax error: EOF in backquote substitution I also tried FPCVERSION= `make -f /usr/ports/lang/fpc/Makefile -V PORTVERSION` but it fails on the same error. Can you please advise me how to call this command? Thank you in advance. Regards Rambius -- Tangra Mega Rock: http://www.radiotangra.com