Conversation with #inferno at Wed Dec 5 20:56:34 2012 on powerman-asdf@irc.freenode.net (irc) (20:56:35) powerman-asdf left the room (quit: Read error: Connection reset by peer). (20:56:42) leetspete: powerman-asdf1: So, the first two s/ lines, those are for the filename, right? (20:56:57) powerman-asdf: 1) skip INDEX file (20:56:57) powerman-asdf: 2) take into $title all lines between "^.SH NAME\n" and next "^.SH" (20:56:57) powerman-asdf: 3) delete from $title everything after "\s-" or "\\-" (20:56:57) powerman-asdf: 4) if file name is "0intro" change it to "intro" (20:57:11) leetspete: Oh, oh, okay. (20:59:31) powerman-asdf: 5) for file name and every "word" in $title (where "word" may include [\w\/!~.-]): convert that word to lower case, sort by that word, and print "$that_word $filename\n" (20:59:31) powerman-asdf: 6) remove duplicates (21:10:46) raphaelsc left the room (quit: Remote host closed the connection). (21:13:12) raphaelsc [~raphaelsc@187-127-110-123.user.veloxzone.com.br] entered the room. (21:49:49) leetspete: powerman-asdf1: Almost. Didn't realize there'd be line breaks for some of them after the \-. (22:26:32) fdd [fdd@2a02:2f02:8029:f005::bc18:5144] entered the room. (22:26:33) fdd left the room (quit: Changing host). (22:26:33) fdd [fdd@unaffiliated/fdd] entered the room. (22:44:32) raphaelsc left the room (quit: Remote host closed the connection). (22:51:18) powerman-asdf: leetspete: any luck? (23:11:15) leetspete: powerman-asdf1: I have one. Not very fast or very pretty, but it does seem to work: http://static.debu.gs/indexer.sh.txt (23:15:01) powerman-asdf: much better than /man/lib/secindex (23:16:47) leetspete: The output is correct as far as I can tell. (23:18:53) powerman-asdf: I'm working on clean and reusable set of mkfiles designed for /opt packages and apps which uses them, which will work both on host os and within emu. Mostly done them, and I'd like to include your indexer in these mkfiles (so perl version will be used when run from host os and your version when run within emu). (23:21:49) leetspete: Go for it. Trivial so it's public domain, but credit is always appreciated. :) (23:22:39) powerman-asdf: sure (23:23:58) powerman-asdf: some corner cases probably will need attention (like empty dir, where echo * will output "*") (23:24:38) powerman-asdf: or I'll just manage it to not run in these cases at all using mkfile (23:25:11) leetspete: Well, depends on the wd; I suspect that it'd be better to make the files to index an argument to the script rather than having it echo * | sort. (23:25:40) leetspete: So you could pass in its deps from mk instead of having it figure out its own. (23:26:28) powerman-asdf: yeah, good idea (23:27:30) Fish left the room (quit: Quit: WeeChat 0.3.8). (23:27:39) Fish [~Fish@9fans.fr] entered the room. (23:44:20) raphaelsc [~raphaelsc@187-127-110-123.user.veloxzone.com.br] entered the room. (01:08:14) powerman-asdf: leetspete: is there any reasons why and/or preferred to &&/||? (01:20:00) leetspete: powerman-asdf1: I like those better for scripts and &&/|| for interactive use. No serious preference, I think. (01:20:24) leetspete: x&&y is easier to type, and {x} {y} seems a little easier to read. (01:20:32) leetspete: YMMV (01:47:55) doublec: are there any other limbo/inferno books other than "inferno programming with limbo"? (01:49:54) fdd left the room (quit: Ping timeout: 240 seconds). (01:55:27) powerman-asdf: leetspete: http://pastebin.com/FsWd7rZK (01:56:30) powerman-asdf: I've fixed it a little (sort at wrong place, _ added to regex, etc.) (01:57:07) powerman-asdf: and slightly simplified getlines loop logic (01:57:45) powerman-asdf: and for in * ;) (03:26:20) powerman-asdf: http://code.google.com/p/inferno-opt-setup/ (03:44:32) powerman-asdf: http://code.google.com/p/inferno-opt-mkfiles/ (03:56:33) raphaelsc left the room (quit: Remote host closed the connection). (03:57:08) raphaelsc [~raphaelsc@187-127-110-123.user.veloxzone.com.br] entered the room. (05:02:27) raphaelsc left the room (quit: Remote host closed the connection). (05:06:56) powerman-asdf: http://code.google.com/p/inferno-opt-skel/ (05:28:19) raphaelsc [~raphaelsc@187-127-110-123.user.veloxzone.com.br] entered the room. (06:05:09) raphaelsc left the room (quit: Ping timeout: 252 seconds). (07:40:09) Gegemon [~ynv@mx1.airis.ru] entered the room. (09:36:51) kabbi [~kabbi@217.21.43.144] entered the room. (09:39:27) kabbi left the room (quit: Client Quit). (09:41:56) kabbi [~kabbi@217.21.43.144] entered the room. (09:48:31) kabbi left the room (quit: Remote host closed the connection). (10:17:38) `jpi left the room (quit: Ping timeout: 250 seconds). (10:22:55) `jpi [~jpi@unaffiliated/pseud0cod3r] entered the room. (15:49:48) Gegemon left the room (quit: Quit: Leaving.). (16:28:20) mennis [~mennis@108-204-242-13.lightspeed.tukrga.sbcglobal.net] entered the room. (17:42:07) Aram [~aram@unaffiliated/aramdune] entered the room. (18:19:07) raphaelsc [~raphaelsc@187-127-98-222.user.veloxzone.com.br] entered the room. (18:59:32) You are now known as powerman (19:03:48) You are now known as powerman-asdf (19:09:55) The account has disconnected and you are no longer in this chat. You will automatically rejoin the chat when the account reconnects.