Mail Archives: djgpp/1997/01/06/06:59:04
Alaric B. Williams (alaric AT abwillms DOT demon DOT co DOT uk) wrote:
: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
:
: I know a /bit/. It's the specifics I lack! Unlike my namesake Alaric
: Daley, which is real freaky - Hi Alaric ;-)
^^^^^
I don't know anyone by this name (giggle, its sarcasm) but really it is
Dailey, And a Big HELLO to you to check out bellow!!!
:
:
: Well I did all that! It /nearly/ works. Where/what the $&"^%$£ is
: "tsort"? configure tries to run it and fails, there are a few lines of
: the form:
tsort is a topilogical sort hence the name I don't use it so I am not real
clear on the intricacies but playing around with it, it appears to do
a the same thing as uniq which is only use a single instance give in the
list it is sorting through
:
: all_subdirs=`cat $srcdir/*/PLUGIN/REQ $srcdir/*/PLUGIN/OPT /dev/null |
: tsort | xargs echo`
it looks like this is building a list of all the subdirectories under
$srcdir (whereever this is defined in the makefile) catting the files
(which will do the same thing as DOS "type" sorting the output making
sure there are no duplicate listings and then xargs will put the whole
damn shmear on a single line.
ie. I have 15 copies of hellwrld.c named different things in each of 15
directories under the current directory then I run
junk=`cat */*.c | tsort |xargs echo`
then if you type
echo $junk
what you will get is
main() { printf("hello world\n"); }
at least this is what I got when I was playing around with it. I hope this
helps.
- Raw text -