1 |
Am 01.10.2010 15:07, schrieb Peter Volkov: |
2 |
> В Пнд, 27/09/2010 в 11:37 +0000, Dirkjan Ochtman (djc) пишет: |
3 |
> |
4 |
>> [[ ${i} == "README" || ${i} == "examples" || ${i} == "defer" ]] && continue |
5 |
>> [[ ${i} == "auth-pam" ]] && ! use pam && continue |
6 |
>> einfo "Building ${i} plugin" |
7 |
>> cd "${i}" |
8 |
>> emake CC=$(tc-getCC) || die "make failed" |
9 |
>> cd .. |
10 |
> |
11 |
> I think pushd/popd are better suited for this then cd "${dir}" / cd .. |
12 |
> |
13 |
|
14 |
You can make it even shorter by using the -C switch of (e)make, so you dont have to manually |
15 |
enter/exit the dir. |
16 |
|
17 |
-- |
18 |
Thomas Sachau |
19 |
|
20 |
Gentoo Linux Developer |