Even better would be if these directories would be created
directly from the make files, as it would solve this problem
without external hacks, plus we could delete this feature
from all starter scripts.

Brgds,
Viktor

On Mon, Jun 8, 2009 at 8:53 PM, Przemyslaw Czerpak<dru...@acn.waw.pl> wrote:
> On Tue, 02 Jun 2009, Szak�ts Viktor wrote:
>> Ops sorry, so you experiences errors with 'sudo' also...
>> Well, no idea :(
>> I hope someone will tell the solution and we can fix it
>> or update INSTALL as needed.
>
> Just simply make_gnu.sh creates destination directories only for:
>
>   if [ "$HB_ARCHITECTURE" = "win" ] || \
>      [ "$HB_ARCHITECTURE" = "wce" ] || \
>      [ "$HB_ARCHITECTURE" = "dos" ] || \
>      [ "$HB_ARCHITECTURE" = "os2" ]; then
>       if [ -z "$HB_DOC_INSTALL" ]; then export 
> HB_DOC_INSTALL="$HB_INSTALL_PREFIX/doc"; fi
>       mkdir -p "$HB_BIN_INSTALL" "$HB_LIB_INSTALL" "$HB_INC_INSTALL" 
> "$HB_DOC_INSTALL"
>   fi
>
> so on any other system they have to be create manually by user.
> Anyhow in my opinion this code is wrong and should by updated.
> The destination directories should be create only when one of make_gnu.sh
> parameters is "install".
> There is not reason to create install directories for simple compilation
> or even clean call.
>
> You can use this code to check if one of passed parameters is "install"
>
>   test_param()
>   {
>      local inst
>      inst=no
>      while [ $# != 0 ] && [ "$inst" != yes ]; do
>         [ "$1" = install ] && inst=yes
>         shift
>      done
>      [ "$inst" = yes ]
>   }
>
>   if test_param "$@"; then
>       mkdir -p "$HB_BIN_INSTALL" "$HB_LIB_INSTALL" "$HB_INC_INSTALL"
>       [ -z "$HB_DOC_INSTALL" ] || mkdir -p "$HB_DOC_INSTALL" 
> "$HB_DOC_INSTALL/en-EN"
>   fi
>
> best regards,
> Przemek
> _______________________________________________
> Harbour mailing list
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to