[blfs-book] r12152 - trunk/BOOK/x/lib

igor at higgs.linuxfromscratch.org igor at higgs.linuxfromscratch.org
Thu Nov 7 06:25:42 PST 2013


Author: igor
Date: Thu Nov  7 06:25:42 2013
New Revision: 12152

Log:
improve command for removing references to the qt build directory from installed files

Modified:
   trunk/BOOK/x/lib/qt4.xml

Modified: trunk/BOOK/x/lib/qt4.xml
==============================================================================
--- trunk/BOOK/x/lib/qt4.xml	Thu Nov  7 05:17:29 2013	(r12151)
+++ trunk/BOOK/x/lib/qt4.xml	Thu Nov  7 06:25:42 2013	(r12152)
@@ -361,12 +361,10 @@
       <systemitem class="username">root</systemitem> user:
     </para>
 
-<screen role="root"><userinput>for file in 3Support CLucene Core DBus Declarative DesignerComponents \
-            Designer Gui Help Multimedia Network OpenGL Script \
-            ScriptTools Sql Svg Test UiTools WebKit XmlPatterns Xml; do
+<screen role="root"><userinput>for file in `basename -a -s .prl /usr/lib/lib*.prl`; do
   sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' \
-       $QTDIR/lib/libQt${file}.prl
-  perl -pi -e "s, -L$PWD/?\S+,,g" $QTDIR/lib/pkgconfig/Qt${file}.pc
+       $QTDIR/lib/${file}.prl
+  perl -pi -e "s, -L$PWD/?\S+,,g" $QTDIR/lib/pkgconfig/${file##lib}.pc
 done
 
 unset file</userinput></screen>



More information about the blfs-book mailing list