From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <002401c0f5a7$00d07960$e8b7c6d4@SOMA> From: "Boyd Roberts" To: <9fans@cse.psu.edu> References: <00bb01c0f2d8$304f6060$6401a8c0@freeze2k>, <0dcc01c0f2db$14720430$e8b7c6d4@SOMA> <9gb55c$gl$1@newsserver.rrzn.uni-hannover.de> <0b7401c0f591$be3fd010$e8b7c6d4@SOMA> <014201c0f5a3$af6c2b30$6401a8c0@freeze2k> Subject: Re: [9fans] help, i'm in a wet paper bag and I can't get out MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Date: Fri, 15 Jun 2001 16:25:18 +0200 Topicbox-Message-UUID: ba20c3b2-eac9-11e9-9e20-41e7f4b1d025 > no news is good news? well, it's better than being the middle of a firefight... err, flamewar. > A basic irc bot that evals commands it's given with > the permission & namespace of whoever started it. > http://www.proweb.co.uk/~matt/chugly.rc ok, will do. i got it down to this as a mashfile: for (i in contrib/*) contrib.html : $i/li.html; */*/li.html :~ $1/$2/url { mash tools/c2li $1/$2 > $0 }; */*/url :~ $1/$2/desc {}; */*/desc :~ $1/$2/from {}; */*/from :~ $1/$2/date {}; *.html :~ $1/0/url { cat $1/*/li.html > $0 }; default: index.html {}; index.html : head.html contrib.html tail.html { cat head.html contrib.html tail.html > index.html }; ---- the contrib directory has directories, named 0...n, which have these files: url desc [description] from date [rfc822/std11 date. it's well known and can be parsed] li.html [this is the html
  • made out of the above files] brucee gave me a bit of a hand, 'cos mash-mk is not mk or make. i think he has a much better and simpler solution to the problem.