Mailinglist Archive: opensuse-packaging (250 mails)

< Previous Next >
Re: [opensuse-packaging] adding with sed?
  • From: "Dominique Leuenberger" <Dominique.Leuenberger@xxxxxxxxxxxxx>
  • Date: Wed, 12 Aug 2009 10:51:19 +0200
  • Message-id: <4A829EA70200002900029C4F@xxxxxxxxxxxxxxxxxxx>
On 8/12/2009 at 10:43, "Sascha 'saigkill' Manns" <samannsml@xxxxxxxxxxxxx>
wrote:
Hello Mates,

i would like to add this in the End of
libs/toolkit/objects/tkSettings.cpp:
if (QDir("/usr/lib64/qt4/plugins").exists())
d->m_Enum_Path.insert( QtPlugInsPath,"/usr/lib64/qt4/plugins" ) );
else if (QDir("/usr/lib/qt4/plugins").exists())
d->m_Enum_Path.insert( QtPlugInsPath,"/usr/lib/qt4/plugins" ) );
Can i do this with sed?

Hi,

Just for 'adding' those exact lines at the end of the file? I think sed is a
bit over the top for this.
Simply use cat:
## example ##
cat >> libs/toolkit/objects/tkSettings.cpp <<EOF
if (QDir("/usr/lib64/qt4/plugins").exists())
d->m_Enum_Path.insert( QtPlugInsPath,"/usr/lib64/qt4/plugins" ) );
else if (QDir("/usr/lib/qt4/plugins").exists())
d->m_Enum_Path.insert( QtPlugInsPath,"/usr/lib/qt4/plugins" ) );
EOF
## end example ##
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >