Re: [KBUILD] Re: PATCH - kbuild documentation.

From: Peter Samuelson (peter@cadcamlab.org)
Date: Thu Nov 30 2000 - 06:46:33 EST


[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/



This archive was generated by hypermail 2b29 : Thu Nov 30 2000 - 21:00:24 EST