Re: Making chkconfig.sed work on Windows

2005-05-29 Thread Angus Leeming
Andre Poenitz wrote: > On Wed, May 25, 2005 at 11:56:19AM +0100, Angus Leeming wrote: >> Angus Leeming wrote: >> >Or maybe tr? >> > >> >test `uname -s | grep 'MINGW'` && { > > > I wonder whether this might be equivalent to > >.. uname -s | grep -q MINGW * ... Sigh. Of course you're ri

Re: Making chkconfig.sed work on Windows

2005-05-28 Thread Andre Poenitz
On Wed, May 25, 2005 at 11:56:19AM +0100, Angus Leeming wrote: > Angus Leeming wrote: > >Or maybe tr? > > > >test `uname -s | grep 'MINGW'` && { I wonder whether this might be equivalent to .. uname -s | grep -q MINGW * ... Andre'

Re: Making chkconfig.sed work on Windows

2005-05-25 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: Is it possible to use if test ; then ... fi instead of test && { ... } ? This is the style used in the rest of the script. Sure. Done. Angus

Re: Making chkconfig.sed work on Windows

2005-05-25 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > | Angus> Angus Leeming wrote: >>> Or maybe tr? test `uname -s | grep 'MINGW'` && { # Before running >>> chkconfig.sed, remove the trailing '\r' # characters that can >>> bugger up various

Re: Making chkconfig.sed work on Windows

2005-05-25 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Angus Leeming wrote: >> Or maybe tr? test `uname -s | grep 'MINGW'` && { # Before running >> chkconfig.sed, remove the trailing '\r' # characters that can >> bugger up various versions of sed. tr -d '\r' < chkconfig.sed > >> chkconf

Re: Making chkconfig.sed work on Windows

2005-05-25 Thread Angus Leeming
Angus Leeming wrote: Or maybe tr? test `uname -s | grep 'MINGW'` && { # Before running chkconfig.sed, remove the trailing '\r' # characters that can bugger up various versions of sed. tr -d '\r' < chkconfig.sed > chkconfig2.sed mv -f chkconfig2.sed chkconfig.s

Re: Making chkconfig.sed work on Windows

2005-05-25 Thread Angus Leeming
Angus Leeming wrote: Or maybe tr? test `uname -s | grep 'MINGW'` && { # Before running chkconfig.sed, remove the trailing '\r' # characters that can bugger up various versions of sed. tr -d '\r' < chkconfig.sed > chkconfig2.sed mv -f chkconfig2.sed chkconfig.s

Re: Making chkconfig.sed work on Windows

2005-05-25 Thread Angus Leeming
Lars Gullik Bjønnes wrote: Angus> This applies to both the 1.3.x and 1.4.x trees. It turns out Angus> that the standard vesions of sed on Windows can't cope with Angus> DOS-style line endings in sed scripts. The chkconfig.sed script Angus> that is produced by chkconfig.ltx contains these DOS line

Re: Making chkconfig.sed work on Windows

2005-05-25 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Jean-Marc Lasgouttes wrote: >> Angus> This applies to both the 1.3.x and 1.4.x trees. It turns out >> Angus> that the standard vesions of sed on Windows can't cope with >> Angus> DOS-style line endings in sed scripts. The chkconfig.sed script >> Angus> t

Re: Making chkconfig.sed work on Windows

2005-05-25 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: Angus> This applies to both the 1.3.x and 1.4.x trees. It turns out Angus> that the standard vesions of sed on Windows can't cope with Angus> DOS-style line endings in sed scripts. The chkconfig.sed script Angus> that is produced by chkconfig.ltx contains these DOS lin

Re: Making chkconfig.sed work on Windows

2005-05-25 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> This applies to both the 1.3.x and 1.4.x trees. It turns out Angus> that the standard vesions of sed on Windows can't cope with Angus> DOS-style line endings in sed scripts. The chkconfig.sed script Angus> that is produced by chkcon

Making chkconfig.sed work on Windows

2005-05-25 Thread Angus Leeming
This applies to both the 1.3.x and 1.4.x trees. It turns out that the standard vesions of sed on Windows can't cope with DOS-style line endings in sed scripts. The chkconfig.sed script that is produced by chkconfig.ltx contains these DOS line endings. The fix is simple. Immediately before thi