Am 01.10.2010 15:07, schrieb Peter Volkov:
> В Пнд, 27/09/2010 в 11:37 +0000, Dirkjan Ochtman (djc) пишет:
> 
>>                      [[ ${i} == "README" || ${i} == "examples" || ${i} == 
>> "defer" ]] && continue
>>                      [[ ${i} == "auth-pam" ]] && ! use pam && continue
>>                      einfo "Building ${i} plugin"
>>                      cd "${i}"
>>                      emake CC=$(tc-getCC) || die "make failed"
>>                      cd ..
> 
> I think pushd/popd are better suited for this then cd "${dir}" / cd ..
> 

You can make it even shorter by using the -C switch of (e)make, so you dont 
have to manually
enter/exit the dir.

-- 
Thomas Sachau

Gentoo Linux Developer

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to