On Tue, 05 Aug 2008, Przemyslaw Czerpak wrote:

Hi Viktor,
> > So, to give a short list of Windows .dll problems:
> > - 'sed' command line error.
> This is probably caused by the C: prefix in your paths.
> Probably if you use /c/ instead then this message will
> disappear. I'll try to located it and add some workarounds.

Can you make a test and change in bin/hb-fun.sh[48-50]:

 MAJOR=`sed -e '/HB_VER_MAJOR/    !d' -e 's/[^0-9]*\([^ ]*\).*/\1/g' "${FVER}"`
 MINOR=`sed -e '/HB_VER_MINOR/    !d' -e 's/[^0-9]*\([^ ]*\).*/\1/g' "${FVER}"`
 REVIS=`sed -e '/HB_VER_REVISION/ !d' -e 's/[^0-9]*\([^ ]*\).*/\1/g' "${FVER}"`

to:

 MAJOR=`sed -e '/HB_VER_MAJOR/    !d' -e 's/[^0-9]*\([^ ]*\).*/\1/g'<"${FVER}"`
 MINOR=`sed -e '/HB_VER_MINOR/    !d' -e 's/[^0-9]*\([^ ]*\).*/\1/g'<"${FVER}"`
 REVIS=`sed -e '/HB_VER_REVISION/ !d' -e 's/[^0-9]*\([^ ]*\).*/\1/g'<"${FVER}"`

Just add '<' before "${FVER}"
In such version "${FVER}" is not passed to sed as parameter but file body
is redirected to sed stdin.
Does it eliminate the problem?
If not then please also test the version where all '/' are replace by '!':

 MAJOR=`sed -e '!HB_VER_MAJOR!    !d' -e 's![^0-9]*\([^ ]*\).*!\1!g' "${FVER}"`
 MINOR=`sed -e '!HB_VER_MINOR!    !d' -e 's![^0-9]*\([^ ]*\).*!\1!g' "${FVER}"`
 REVIS=`sed -e '!HB_VER_REVISION! !d' -e 's![^0-9]*\([^ ]*\).*!\1!g' "${FVER}"`


best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to