mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Samuelson <peter@cadcamlab.org>
To: Neil Brown <neilb@cse.unsw.edu.au>
Cc: linux-kernel@vger.kernel.org, linux-kbuild@torque.net
Subject: Re: [KBUILD] Re: PATCH  - kbuild documentation.
Date: Thu, 30 Nov 2000 05:46:33 -0600 (CST)	[thread overview]
Message-ID: <14886.15897.534178.896687@wire.cadcamlab.org> (raw)
In-Reply-To: <14885.37565.611695.816426@notabene.cse.unsw.edu.au> <200011300036.eAU0aTc05028@flint.arm.linux.org.uk> <14886.8847.933172.241464@notabene.cse.unsw.edu.au>


[Neil Brown <neilb@cse.unsw.edu.au>]
> O_OBJS := $(shell echo $(obj-y) | tr ' ' '\n' | cat -n | sort -u +1 | sort -n | cut -f2)

Clever.  I like pipelines too.  Here is a one-fork equivalent, untested:

  nodups = $(shell g=' '; for f in $(1); do case $$g in (*" $$f "*) ;; (*) g="$$g$$f "; echo $$f; esac; done)

  O_OBJS := $(call nodups,$(obj-y))

Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

      reply	other threads:[~2000-11-30 12:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-29 23:35 Neil Brown
2000-11-30  0:36 ` Russell King
2000-11-30  8:40   ` [KBUILD] " Christoph Hellwig
2000-11-30  9:49   ` Neil Brown
2000-11-30 11:46     ` Peter Samuelson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=14886.15897.534178.896687@wire.cadcamlab.org \
    --to=peter@cadcamlab.org \
    --cc=linux-kbuild@torque.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neilb@cse.unsw.edu.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®