[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MinGW issue
From: |
Albert Chin |
Subject: |
Re: MinGW issue |
Date: |
Sat, 9 Oct 2004 20:54:38 -0500 |
User-agent: |
Mutt/1.5.6i |
On Sat, Oct 09, 2004 at 09:35:45PM -0400, Charles Wilson wrote:
> Bob Friesenhahn wrote:
>
> >regardless, this code fragment only needs to work under Cygwin and MinGW
> >so some other means needs to be found to insert a line before the first
> >line, but it doesn't need to be very portable.
>
> Guys, why not just use a HERE or an echo? Instead of this statement
>
> $run eval "${SED} -e '1iEXPORTS'"' < "$export_symbols" >
> "$output_objdir/$output.def"'
>
> Just change it to these two statements using >> instead of > for the
> second one.
>
> $run eval "${ECHO} EXPORTS "'> "$output_objdir/$output.def"'
> $run eval "${SED} -n -e 'p'"' < "$export_symbols" >>
> "$output_objdir/$output.def"'
>
> That should work, right, if the -n option to sed is universal? (there's
> one other place where you have to do the same thing).
The original code just inserts "EXPORTS" at the first line. So, why
not just:
$run ${ECHO} EXPORTS > "$output_objdir/$output.def"
$run cat "$export_symbols" >> "$output_objdir/$output.def"
--
albert chin (address@hidden)
- MinGW issue, Bob Friesenhahn, 2004/10/09
- Re: MinGW issue, Bob Friesenhahn, 2004/10/09
- Re: MinGW issue, Bob Friesenhahn, 2004/10/09
- Re: MinGW issue, Brad, 2004/10/09
- Re: MinGW issue, Bob Friesenhahn, 2004/10/09
- Re: MinGW issue, Albert Chin, 2004/10/09
- Re: MinGW issue, Charles Wilson, 2004/10/09
- Re: MinGW issue,
Albert Chin <=
- Re: MinGW issue, Charles Wilson, 2004/10/09
- Re: MinGW issue, Albert Chin, 2004/10/09
- Re: MinGW issue, Charles Wilson, 2004/10/09
- Re: MinGW issue, Albert Chin, 2004/10/09
- Re: MinGW issue, Charles Wilson, 2004/10/10
- Re: MinGW issue, Bob Friesenhahn, 2004/10/11
- Re: MinGW issue, Bob Friesenhahn, 2004/10/09