Pascal Terjan said:
> Yura Gusev wrote:
>
> >        perl   is needed by php-xslt-4.2.1-2mdk
>
> in %post from php-xslt You can find things like :
>
>    perl -pi -e 's|^extension\s*=\s*xslt.so|;extension = xslt.so|g'
> %{_sysconfdir}/php.ini
>    perl -pi -e 's|^;extension\s*=\s*xslt.so|extension = xslt.so|'
> %{_sysconfdir}/php.ini
>
> I think it comes from the great love story between perl and mdk
> developpers :)
> In this case, using perl is really simpler than any other solution I
> know.

sh%  sed -e 's/extension = xslt.so/; &/g' %{_sysconfdir}/php.ini | tee >
%{_sysconfdir}/php.ini(place ; before given sting, save the output to the buffer 
(tee), and
write it to the php.ini)


Reply via email to