From owner-freebsd-current@FreeBSD.ORG Thu Jul 26 22:16:18 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1261A1065673 for ; Thu, 26 Jul 2012 22:16:18 +0000 (UTC) (envelope-from mezz.freebsd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id C35318FC18 for ; Thu, 26 Jul 2012 22:16:17 +0000 (UTC) Received: by yhfs35 with SMTP id s35so3021243yhf.13 for ; Thu, 26 Jul 2012 15:16:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Jz8jzVtDMxpiLpJKR0kZwd3mJGatp6qB3XVVIrm0n+4=; b=XVefNZ/i2JuEUMBYnN3/CCgEiSS+KAbi3J2TkDcJzXEUNRqwcRAap4vTq9hAMfbHc5 6FhNevaKSnAXaS+krg7nZqJZWHNVLDo07JlIFgineCjB6qyF/lAGu9CeAILS+3/janY6 a4cKq3xSOCWyB/PyKg9tvFiK6DmhMFvctxFTAlN7daHexREKIrE08JHDrEXSC1jYALEv D2zxQnRAysEbmQHMTyLuXXU4sxXinAdjpl4zxR0c1j2HwfEn6ZVQT1QLz+TSw96VCOdY yiDGGwL7tU+I84zX8pcaDIg4Wpa3MqnIHT3i6OfdeEGjLjgGtLnRjoeskmT1z+e+suTL nwlw== MIME-Version: 1.0 Received: by 10.66.75.168 with SMTP id d8mr606208paw.63.1343340976773; Thu, 26 Jul 2012 15:16:16 -0700 (PDT) Received: by 10.66.41.100 with HTTP; Thu, 26 Jul 2012 15:16:16 -0700 (PDT) In-Reply-To: <5011C04E.2070507@FreeBSD.org> References: <5011C04E.2070507@FreeBSD.org> Date: Thu, 26 Jul 2012 17:16:16 -0500 Message-ID: From: Jeremy Messenger To: FreeBSD Current Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: Is the :u behaves normal or not (a bug) in the make? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2012 22:16:18 -0000 On Thu, Jul 26, 2012 at 5:10 PM, Olli Hauer wrote: > On 2012-07-26 22:11, Jeremy Messenger wrote: >> Hello all, >> >> While I was working on add the :build/:run feature in the >> bsd.gnome.mk. I got a bug where it will running some dependencies got >> duplicate. Thanks to the make(1) that shows me the :u feature to get >> rid of the duplicates. But it doesn't exactly help unless I use the :O >> to get the words in order to make the :u works. I am not sure if it's >> just limited on how it works (normal) or it's a bug. Here's an example >> test: >> >> ----------------------------- >> USE_TEST= foo bar bar foobar foo >> USE_TEST1= foo bar bar foobar foo >> >> test: >> @${ECHO_CMD} "USE_TEST: " ${USE_TEST:u} >> @${ECHO_CMD} "USE_TEST1: " ${USE_TEST1:O:u} >> ----------------------------- >> >> Here's result: >> ----------------------------- >> # make test >> USE_TEST: foo bar foobar foo >> USE_TEST1: bar foo foobar >> ----------------------------- > > > It's normal, from man(1) make > u Remove adjacent duplicate words (like uniq(1)). > > from man(1) uniq > Repeated lines in the input will not be detected if they are > not adjacent, so it may be necessary to sort the files first. Damn it, I missed that line! :-P Thanks! Cheers, Mezz > -- > Regards, > olli -- mezz.freebsd@gmail.com - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org