Date: Thu, 15 Apr 2004 00:04:04 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 349 ************************************************** Wednesday 14 April 2004 Number 349 ************************************************** Subjects for today 1 Re: Perl & GNU Autotools : Henry Sobotka 2 Re: INFO files : Dave and Natalie" 3 TkMan (was: Re: INFO files) : Illya Vaes 4 Re: Finding most recent file : John Poltorak 5 Re: TkMan (was: Re: INFO files) : Dave and Natalie" 6 Re: TkMan (was: Re: INFO files) : Dave and Natalie" 7 Re: Finding most recent file : Steven Levine" 8 Re: TkMan (was: Re: INFO files) : Dave and Natalie" 9 Re: Finding most recent file : John Poltorak 10 config.h : John Poltorak 11 Building MAN : John Poltorak **= Email 1 ==========================** Date: Tue, 13 Apr 2004 10:22:50 -0400 From: Henry Sobotka Subject: Re: Perl & GNU Autotools John Poltorak wrote: > > You mean like this from autom4te:- ? > > use Autom4te::C4che; > use Autom4te::ChannelDefs; > use Autom4te::Channels; > use Autom4te::FileUtils; > use Autom4te::General; > use Autom4te::XFile; > use File::Basename; > use strict; Exactly. The bad news is that you have check each of them for dependencies, and those dependencies for dependencies and so on until you get to the end of each line. h~ -- Free software, free minds. **= Email 2 ==========================** Date: Tue, 13 Apr 2004 07:55:29 -0800 From: "Dave and Natalie" Subject: Re: INFO files On Mon, 12 Apr 2004 21:53:09 CET, Illya Vaes wrote: >>Also tk/tcl ver 8.3.5 (from hobbes) is a beta and tkman closes spontaneously. >>Don't know if its a problem with tkman or tk/tcl > >I'll have a look into this but, as my time for this port is (way too) little, >can you give any specifics? >Doesn't it come up or does it "disappear" after some use? Does it throw up >a SYS3175? What do you use it on, how do you start it, etc... Hi, sometimes it comes up and sometimes not. Tkman disappears pretty quick, usually when clicking on a button, sometimes just moving the mouse over the button (help message is displayed). I've been starting it with wish83 tkman and also tried sh tkman. The first couple of lines in tkman are #! /bin/sh # the next line restarts using wish \ exec f:/usr/bin/wish83 $0 ${1+"$ at "} There are no entries in popup.log related to it, tkman just diappears with no output and the prompt returns. It is quite possible that it is actually tkman (ver 2.1) that is the problem. Even though the readme says it can handle DOSish paths on Windows it complains bitterly about my manpath though simplifying it to one entry didn't make any difference in the crashes. It is also possibally reacting bad with some old utility here, eg groff, gzip etc. I don't know much about tcl/tk Just remembered using tkman years ago on Linux and thought I'd give it a try Dave ps finally got tkman working long enough to hang in gzip. After killing gzip it did display a man page before disappearing. I think the problem is partly tkman, if I find the time I need to go over it. tk/tcl seems fairly simple to follow. pps the widget tour works fine and shows off tcl/tk very well **= Email 3 ==========================** Date: Tue, 13 Apr 2004 21:45:47 CET From: Illya Vaes Subject: TkMan (was: Re: INFO files) ** Reply to note from "Dave and Natalie" Tue, 13 Apr 2004 07:55:29 -0800 >Hi, sometimes it comes up and sometimes not. I haven't had it beyond a error box about an unknown window "w" yet... :-( >Tkman disappears pretty quick, usually when clicking on a >button, sometimes just moving the mouse over the button (help message is displayed). >I've been starting it with wish83 tkman and also tried sh tkman. The first >couple of lines in tkman are >#! /bin/sh ># the next line restarts using wish \ >exec f:/usr/bin/wish83 $0 ${1+"$ at "} Thath should at least be wish83.exe (and usr/bin _might_ be correct, but my installer proposes c:\Tcl835; that would get you "exec c:/Tcl835/bin/wish83.exe"). >Even though the readme says it can >handle DOSish paths on Windows it complains bitterly about my manpath though >simplifying it to one entry >didn't make any difference in the crashes. It is also possibally reacting bad >with some old utility here, eg groff, gzip etc. At the end of the install, it also reminds you 'You also need RosettaMan to run TkMan.'. I don't know what it does without, but I don't have it installed (yet) AFAIK (don't even know if it readily runs on OS/2). >I don't know much about tcl/tk www.tcl.tk >pps the widget tour works fine and shows off tcl/tk very well Oh, plenty of bugs still there (and so little time) :-( Illya Vaes Tcl/Tk OS/2: http://www.vaeshiep.demon.nl/ **= Email 4 ==========================** Date: Tue, 13 Apr 2004 22:01:23 +0100 From: John Poltorak Subject: Re: Finding most recent file On Tue, Apr 13, 2004 at 11:24:48AM +0100, John Poltorak wrote: > > Does anyone know how I can use GNU FIND to find the most recent file in a > particular directory? In case anyone is interested, this is what I came up with, without using FIND:-- sh script | sort -n | head -1 | cut -d " " -f 2 where script is:- #! /bin/sh for x in * do echo `date -r $x +%s` $x done -- John **= Email 5 ==========================** Date: Tue, 13 Apr 2004 19:29:13 -0800 From: "Dave and Natalie" Subject: Re: TkMan (was: Re: INFO files) On Tue, 13 Apr 2004 21:45:47 CET, Illya Vaes wrote: >** Reply to note from "Dave and Natalie" Tue, 13 Apr 2004 07:55:29 -0800 >>Hi, sometimes it comes up and sometimes not. > >I haven't had it beyond a error box about an unknown window "w" yet... :-( > >>Tkman disappears pretty quick, usually when clicking on a >>button, sometimes just moving the mouse over the button (help message is displayed). One other data point is that when opening a menu my mouse pointer disappears while hovering over the menu. It reappears when moved away from the menu. This is most apparent with the volumes button/menu. I guess I should try reverting to the stock OS/2 mouse driver. I'm using amouse ver2.5. >>I've been starting it with wish83 tkman and also tried sh tkman. The first >>couple of lines in tkman are >>#! /bin/sh >># the next line restarts using wish \ >>exec f:/usr/bin/wish83 $0 ${1+"$ at "} > >Thath should at least be wish83.exe (and usr/bin _might_ be correct, but >my installer proposes c:\Tcl835; that would get you "exec >c:/Tcl835/bin/wish83.exe"). The path is right, I've added the .exe, didn't make any difference except allowing bash to run it. > >>Even though the readme says it can >>handle DOSish paths on Windows it complains bitterly about my manpath though >>simplifying it to one entry >>didn't make any difference in the crashes. It is also possibally reacting bad >>with some old utility here, eg groff, gzip etc. > >At the end of the install, it also reminds you 'You also need RosettaMan to run >TkMan.'. >I don't know what it does without, but I don't have it installed (yet) AFAIK >(don't even know if it readily runs on OS/2). There is a version of rman that comes with XFree86. I had problems with this port and built a newer binary Same problem no matter what binary I use. Source is available at http://polyglotman.sourceforge.net/ Basically rman decompiles man pages into various sources I haven't even tried to configure Info files yet, Figured start simple. > >>I don't know much about tcl/tk > >www.tcl.tk > >>pps the widget tour works fine and shows off tcl/tk very well > >Oh, plenty of bugs still there (and so little time) :-( Yea, I know the feeling. Dave **= Email 6 ==========================** Date: Tue, 13 Apr 2004 19:29:13 -0800 From: "Dave and Natalie" Subject: Re: TkMan (was: Re: INFO files) On Tue, 13 Apr 2004 21:45:47 CET, Illya Vaes wrote: >** Reply to note from "Dave and Natalie" Tue, 13 Apr 2004 07:55:29 -0800 >>Hi, sometimes it comes up and sometimes not. > >I haven't had it beyond a error box about an unknown window "w" yet... :-( > >>Tkman disappears pretty quick, usually when clicking on a >>button, sometimes just moving the mouse over the button (help message is displayed). One other data point is that when opening a menu my mouse pointer disappears while hovering over the menu. It reappears when moved away from the menu. This is most apparent with the volumes button/menu. I guess I should try reverting to the stock OS/2 mouse driver. I'm using amouse ver2.5. >>I've been starting it with wish83 tkman and also tried sh tkman. The first >>couple of lines in tkman are >>#! /bin/sh >># the next line restarts using wish \ >>exec f:/usr/bin/wish83 $0 ${1+"$ at "} > >Thath should at least be wish83.exe (and usr/bin _might_ be correct, but >my installer proposes c:\Tcl835; that would get you "exec >c:/Tcl835/bin/wish83.exe"). The path is right, I've added the .exe, didn't make any difference except allowing bash to run it. > >>Even though the readme says it can >>handle DOSish paths on Windows it complains bitterly about my manpath though >>simplifying it to one entry >>didn't make any difference in the crashes. It is also possibally reacting bad >>with some old utility here, eg groff, gzip etc. > >At the end of the install, it also reminds you 'You also need RosettaMan to run >TkMan.'. >I don't know what it does without, but I don't have it installed (yet) AFAIK >(don't even know if it readily runs on OS/2). There is a version of rman that comes with XFree86. I had problems with this port and built a newer binary Same problem no matter what binary I use. Source is available at http://polyglotman.sourceforge.net/ Basically rman decompiles man pages into various sources I haven't even tried to configure Info files yet, Figured start simple. > >>I don't know much about tcl/tk > >www.tcl.tk > >>pps the widget tour works fine and shows off tcl/tk very well > >Oh, plenty of bugs still there (and so little time) :-( Yea, I know the feeling. Dave **= Email 7 ==========================** Date: Tue, 13 Apr 2004 19:51:31 -0700 From: "Steven Levine" Subject: Re: Finding most recent file In <20040413220123.P44505 at warpix.org>, on 04/13/04 at 10:01 PM, John Poltorak said: >sh script | sort -n | head -1 | cut -d " " -f 2 >where script is:- >#! /bin/sh >for x in * >do > echo `date -r $x +%s` $x >done Hmm. What's wrong with: ls -lt | grep -v "^d" | tail -1 | cut -c34- HTH, Steven -- ---------------------------------------------------------------------- "Steven Levine" MR2/ICE 2.41 #10183 Warp4/FP15/14.093c_W4 www.scoug.com irc.webbnet.info irc.fyrelizard.org #scoug (Wed 7pm PST) ---------------------------------------------------------------------- **= Email 8 ==========================** Date: Tue, 13 Apr 2004 21:12:26 -0800 From: "Dave and Natalie" Subject: Re: TkMan (was: Re: INFO files) On Tue, 13 Apr 2004 19:29:13 -0800, Dave and Natalie wrote: >I >guess I should try reverting to the stock OS/2 mouse driver. I'm using >amouse ver2.5. Tried it with the stock mouse driver. Still disappears. Though on a freshly booted system TkMan does not die until displaying manpage. Unluckily all it takes is moving the mouse over the man page to close TkMan. I'm having other problems which are TkMan or OS/2 ported software problems. Gzip hangs and needs to be killed. And I keep getting a sys3171 in cksum.exe. Wonder where I got cksum from :) Dave **= Email 9 ==========================** Date: Wed, 14 Apr 2004 11:19:27 +0100 From: John Poltorak Subject: Re: Finding most recent file On Tue, Apr 13, 2004 at 07:51:31PM -0700, Steven Levine wrote: > In <20040413220123.P44505 at warpix.org>, on 04/13/04 > at 10:01 PM, John Poltorak said: > > >sh script | sort -n | head -1 | cut -d " " -f 2 > > >where script is:- > > >#! /bin/sh > >for x in * > >do > > echo `date -r $x +%s` $x > >done > > Hmm. What's wrong with: > > ls -lt | grep -v "^d" | tail -1 | cut -c34- The only thing wrong is that I wasn't familiar with how the '-t' option for ls worked. This is a better solution, although I don't understaand why you need grep. Also in my original solution, the oldest rather than the newest file was being shown, so 'tail' needs to be replaced, but 'head' is not appropriate since it is the second line of output which needs to be shown, so I've replaced it with 'sed -n "2p"', but thanks for the suggested solution. > HTH, > > Steven > > > -- > ---------------------------------------------------------------------- > "Steven Levine" MR2/ICE 2.41 #10183 Warp4/FP15/14.093c_W4 > www.scoug.com irc.webbnet.info irc.fyrelizard.org #scoug (Wed 7pm PST) > ---------------------------------------------------------------------- > -- John **= Email 10 ==========================** Date: Wed, 14 Apr 2004 12:54:30 +0100 From: John Poltorak Subject: config.h I'm experiencing a problem in getting inconsistant builds of config.h on different machines and could do with suggestions as to what differences in the two machines build environments could be responsible for the difference... The same configure script is run on both and they use the same config.hin and have the same INCLUDE and LIB paths. Running configure on one results in:- checking for strcasecmp... no checking for strncasecmp... no but the other results in:- checking for strcasecmp... yes checking for strncasecmp... yes What would account for these differences? -- John **= Email 11 ==========================** Date: Wed, 14 Apr 2004 14:49:13 +0100 From: John Poltorak Subject: Building MAN Has anyone ever tried building MAN? It doesn't follow the usual GNU conventions of providing a configure.in file from which you can generate an OS/2 friendly configure script, but it does have its own configure script which runs to create a conf_script, and I have managed to build a Makefile all the *FLAGS need changing to make it work on OS/2. The trouble is it creates a MAKEMSG progam somewhere along the way and it isn't easy to figure out how. A makemsg file gets built but emxbind cannot convert it into an OS/2 binary. How do I tell what sort of file it is? -- John