1 |
On Thursday 18 May 2006 07:44, Panard wrote: |
2 |
> OPTION=${OPTION:-"WITH_${USEFLAG}"} |
3 |
|
4 |
quoting here is pointless |
5 |
|
6 |
> mkdir -p ${BUILDDIR} |
7 |
> cd ${BUILDDIR} |
8 |
> echo cmake ${S} -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \ |
9 |
> $(cmake_use_option debug CMAKE_BUILD_TYPE debugfull) |
10 |
> $* |
11 |
> cmake ${S} -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \ |
12 |
> $(cmake_use_option debug CMAKE_BUILD_TYPE debugfull) |
13 |
> $* |
14 |
|
15 |
$BUILDDIR and $S should be quoted |
16 |
|
17 |
use "$@", not $* |
18 |
|
19 |
> cd ${OLDPWD} |
20 |
|
21 |
if you want to enter a directory and then return to previous, use pushd/popd, |
22 |
not $OLDPWD |
23 |
-mike |