On Thursday 18 May 2006 07:44, Panard wrote:
>         OPTION=${OPTION:-"WITH_${USEFLAG}"}

quoting here is pointless

>         mkdir -p ${BUILDDIR}
>         cd ${BUILDDIR}
>         echo cmake ${S} -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
>                         $(cmake_use_option debug CMAKE_BUILD_TYPE debugfull)
>                         $*  
>               cmake ${S} -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \ 
>                         $(cmake_use_option debug CMAKE_BUILD_TYPE debugfull)
>                         $* 

$BUILDDIR and $S should be quoted

use "$@", not $*

>         cd ${OLDPWD}

if you want to enter a directory and then return to previous, use pushd/popd, 
not $OLDPWD
-mike

Attachment: pgpbTu5J04VYd.pgp
Description: PGP signature

Reply via email to