www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/06/06:59:04

From: alaric AT oasis DOT novia DOT net (Alaric Dailey)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GUILE port?
Date: 6 Jan 1997 09:36:06 GMT
Organization: Novia Internetworking <> 28.8kbps dialup; 402/390-2NET
Lines: 47
Message-ID: <5aqh26$50s@nntp.novia.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970101082043 DOT 15959F-100000 AT is> <852345207 DOT 22992 DOT 0 AT abwillms DOT demon DOT co DOT uk>
NNTP-Posting-Host: oasis.novia.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019