From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Thu, 1 Aug 2002 04:35:02 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 290 ************************************************** Wednesday 31 July 2002 Number 290 ************************************************** Subjects for today 1 Re: Conditionals in the bootstrapping : Dave Saville" 2 Re: Conditionals in the bootstrapping : Maynard" 3 Re: Conditionals in the bootstrapping : Maynard" 4 Re: Conditionals in the bootstrapping : John Poltorak 5 Building gettext v0.11.4 : John Poltorak 6 Slackware changes : John Poltorak 7 Re: Building gettext v0.11.4 : Franz Bakan" 8 Re: Building gettext v0.11.4 : John Poltorak 9 Re: Building gettext v0.11.4 : Franz Bakan" 10 Re: Slackware changes : lamikr **= Email 1 ==========================** Date: Thu, 01 Aug 2002 05:48:40 +0100 (BST) From: "Dave Saville" Subject: Re: Conditionals in the bootstrapping On Wed, 31 Jul 2002 17:03:59 -0500 (CDT), Maynard wrote: >On Wed, 31 Jul 2002 21:19:55 +0100 (BST), Dave Saville wrote: > >>>grep -h \$ config.site | sed s/\(.*\)\$\(.*\)\/\(.*\)/$\2\// | sort -u >>> >> >>What sort of wall? :-) > >I'm pretty new to regexp and sed ;-} > >The string fed to sed will be of the form >(content1)$(variable)/(content2) and I want sed to export only >$(variable)/. > >(content1) ?= \(.*\) need minimal match here, only to first $ >$ ?= \$ $ probably doesn't need escaping >(variable) ?= \(.*\) >/ ?= \/ >(content2) ?= \(.*\) > >desired sed output ?= $\2\/ > >In the end I've no need for the preceeding $ or trailing / >A similar function on .cmd files would use % delimiters around >(variable) > >-- Manarda Are you trying to strip environmental variables out of shell script paths? i drive/bar and you want foe? -- Regards Dave Saville Please note new email address dave.saville at ntlworld.com **= Email 2 ==========================** Date: Thu, 01 Aug 2002 06:42:17 -0500 (CDT) From: "Maynard" Subject: Re: Conditionals in the bootstrapping Dave, >Are you trying to strip environmental variables out of shell script >paths? yes; out of shell scripts to be precise; looking for dependencies; so that I can make an effort to set the required variables; I can see that I'd need to do further analysis regarding local variables, but for now I'm approaching one step at a time. >i drive/bar and you want foe? ??? -- Maynard **= Email 3 ==========================** Date: Thu, 01 Aug 2002 06:46:02 -0500 (CDT) From: "Maynard" Subject: Re: Conditionals in the bootstrapping On Thu, 1 Aug 2002 09:07:29 +0100, John Poltorak wrote: >Does this do what you want?:- > >"s/^.*\$//;s/\/.*$//" Quite So!! Thank you, -- Maynard **= Email 4 ==========================** Date: Thu, 1 Aug 2002 09:07:29 +0100 From: John Poltorak Subject: Re: Conditionals in the bootstrapping On Wed, Jul 31, 2002 at 05:03:59PM -0500, Maynard wrote: > On Wed, 31 Jul 2002 21:19:55 +0100 (BST), Dave Saville wrote: > > >>grep -h \$ config.site | sed s/\(.*\)\$\(.*\)\/\(.*\)/$\2\// | sort -u > >> > > > >What sort of wall? :-) > > I'm pretty new to regexp and sed ;-} > > The string fed to sed will be of the form > (content1)$(variable)/(content2) and I want sed to export only > $(variable)/. > > (content1) ?= \(.*\) need minimal match here, only to first $ > $ ?= \$ $ probably doesn't need escaping > (variable) ?= \(.*\) > / ?= \/ > (content2) ?= \(.*\) > > desired sed output ?= $\2\/ > > In the end I've no need for the preceeding $ or trailing / > A similar function on .cmd files would use % delimiters around > (variable) Does this do what you want?:- "s/^.*\$//;s/\/.*$//" BTW there is an excellent SED mailing list, sed-users at yahoogroups.com where you can usually get some help with scripts. > -- > Maynard -- John **= Email 5 ==========================** Date: Thu, 1 Aug 2002 10:30:53 +0100 From: John Poltorak Subject: Building gettext v0.11.4 Has anyone tried building the latest gettext? :- ftp://ftp.gnu.org/pub/gnu/gettext/gettext-0.11.4.tar.gz This actually does build using the standard autoconf, configure, make routine, and I do manage to create an INTL.DLL, but it doesn't work with anything I've tried it with. Has anyone had any success with it? -- John **= Email 6 ==========================** Date: Thu, 1 Aug 2002 10:44:06 +0100 From: John Poltorak Subject: Slackware changes The Slackware distribution appears to have changed a bit recently with the release of v8.1 as can be seen here:- ftp://ftp.mirror.ac.uk/sites/ftp.slackware.com/pub/slackware/slackware/slackware/ The directories are no longer suffixed by '1' and the individual packages contain version numbers and suffixes such as -i386-2.tgz, although I haven't worked out what the '-2' stands for yet. My personal preference is to simply have the old package name such as LESS for instance, which would be the most recently available release on OS/2. Anyone not familiar with the layout of Slackware is recommended to have a browse round the site above to get an idea of the structure of the Slackware distro on which UnixOS/2 is being based. -- John **= Email 7 ==========================** Date: Thu, 01 Aug 2002 11:48:08 +0200 (MSZ) From: "Franz Bakan" Subject: Re: Building gettext v0.11.4 On Thu, 1 Aug 2002 10:30:53 +0100, John Poltorak wrote: >This actually does build using the standard autoconf, configure, make >routine, and I do manage to create an INTL.DLL, but it doesn't work with >anything I've tried it with. If you _read_ \os2\README.OS2 you will know why it does not work Franz **= Email 8 ==========================** Date: Thu, 1 Aug 2002 13:21:07 +0100 From: John Poltorak Subject: Re: Building gettext v0.11.4 On Thu, Aug 01, 2002 at 11:48:08AM +0200, Franz Bakan wrote: > On Thu, 1 Aug 2002 10:30:53 +0100, John Poltorak wrote: > > >This actually does build using the standard autoconf, configure, make > >routine, and I do manage to create an INTL.DLL, but it doesn't work with > >anything I've tried it with. > > If you _read_ \os2\README.OS2 you will know why it does not work Ah... so all I need to do is prepend backward.def to the export definition file... I would like to try doing this. Do you know when the export definition file is created? Maybe I could pause the build and manually add backward.def. If I know I can build it correctly, I can investigate ways of scripting it. > Franz > > -- John **= Email 9 ==========================** Date: Thu, 01 Aug 2002 17:50:14 +0200 (MSZ) From: "Franz Bakan" Subject: Re: Building gettext v0.11.4 On Thu, 1 Aug 2002 13:21:07 +0100, John Poltorak wrote: >Ah... so all I need to do is prepend backward.def to the export >definition file... > >I would like to try doing this. Do you know when the export definition >file is created? Sorry I don't know Franz **= Email 10 ==========================** Date: Thu, 01 Aug 2002 21:12:22 +0100 From: lamikr Subject: Re: Slackware changes > > >The directories are no longer suffixed by '1' and the individual packages >contain version numbers and suffixes such as -i386-2.tgz, although I >haven't worked out what the '-2' stands for yet. > I believe that "bash-2.05a-i386-2.tgz" means for example that this is Slackwarez second internal release from the bash-2.05a-i386. At least that is very common naming schema with some releases. In Familiar PDA-linux distribution they are even butting the author names to the files. So there are files like "bash-2.05a-i386-hh2-ml3.tgz" Which would mean 3:rd patch-release from "ml" over "hh"'s second release. :-) Mika