Re: [Fink-devel] Folding long lines in scripts

2004-02-16 Thread Daniel Macks
On Tue, Feb 17, 2004 at 12:03:45AM +1100, Rohan Lloyd wrote: > On 16 Feb 2004, at 8:20 PM, Daniel Macks wrote: > > >Okay Rohan, I think that works now. I just patched Services.pm. Give > >it a try. For the second above, I used: > > > > # Unfold multiline commands into one line > > $script =~ s/\

Re: [Fink-devel] Folding long lines in scripts

2004-02-16 Thread Rohan Lloyd
On 16 Feb 2004, at 8:20 PM, Daniel Macks wrote: Okay Rohan, I think that works now. I just patched Services.pm. Give it a try. For the second above, I used: # Unfold multiline commands into one line $script =~ s/\s*\\\s*\n/ /g; in case Maintainer got sloppy and left training whitespace after \

Re: [Fink-devel] Folding long lines in scripts

2004-02-16 Thread Daniel Macks
Okay Rohan, I think that works now. I just patched Services.pm. Give it a try. For the second above, I used: # Unfold multiline commands into one line $script =~ s/\s*\\\s*\n/ /g; in case Maintainer got sloppy and left training whitespace after \. I also updated the Packaging Manual docs for

Re: [Fink-devel] Folding long lines in scripts

2004-02-16 Thread Rohan Lloyd
On 16 Feb 2004, at 6:52 PM, Daniel Macks wrote: On Thu, Feb 12, 2004 at 06:14:10PM +1100, Rohan Lloyd wrote: [a *huge* snip...we're now talking about a patch for Services.pm] Okay, looking good. Question: - If "#!" strip leading whitespace on first line only - Otherwise, unfold lines and stri

Re: [Fink-devel] Folding long lines in scripts

2004-02-15 Thread Daniel Macks
On Thu, Feb 12, 2004 at 06:14:10PM +1100, Rohan Lloyd wrote: [a *huge* snip...we're now talking about a patch for Services.pm] Okay, looking good. Question: > - If "#!" strip leading whitespace on first line only > - Otherwise, unfold lines and strip leading whitespace on all lines. This la

Re: [Fink-devel] Folding long lines in scripts

2004-02-11 Thread Daniel Macks
On Thu, Feb 12, 2004 at 06:14:10PM +1100, Rohan Lloyd wrote: > On 12 Feb 2004, at 4:33 PM, Daniel Macks wrote: > >On Thu, Feb 12, 2004 at 12:53:09AM +1100, Rohan Lloyd wrote: > >> > >>I discovered that fink did not like this. If I add a "#!/bin/sh" to > >>the > >>first line, it saves the script t

Re: [Fink-devel] Folding long lines in scripts

2004-02-11 Thread Rohan Lloyd
On 12 Feb 2004, at 4:33 PM, Daniel Macks wrote: On Thu, Feb 12, 2004 at 12:53:09AM +1100, Rohan Lloyd wrote: In writing the InstallScript for a new package I wanted to be able to fold long lines, to make it more readable. ie. have: /usr/bin/install -m 755 common/fink/emacsen-install \