[MPlayer-DOCS] CVS: main/DOCS/xml configure,1.9,1.10

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Wed Jan 21 19:50:54 CET 2004


On Wednesday, 21 January 2004 at 18:35, Diego Biurrun CVS wrote:
> Update of /cvsroot/mplayer/main/DOCS/xml
> In directory mail:/tmp/cvs-serv19598
> 
> Modified Files:
> 	configure 
> Log Message:
> uniq is ineffective without sort.

Why not just use 'sort -u'? One pipe less. ;)

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/xml/configure,v
retrieving revision 1.10
diff -u -r1.10 configure
--- configure	21 Jan 2004 17:35:10 -0000	1.10
+++ configure	21 Jan 2004 18:49:00 -0000
@@ -120,7 +120,7 @@
 [ 
 EOF
 
-  for file in `find $lang en -name \*.xml -exec basename \{\} \; | sort | uniq`; do
+  for file in `find $lang en -name \*.xml -exec basename \{\} \; | sort -u`; do
     echo '<!ENTITY '$file'	SYSTEM "'$file'">' >> $lang/main.xml
   done
 
===================================================================

-- 
MPlayer RPMs maintainer: http://greysector.rangers.eu.org/mplayer.html
"The Universe doesn't give you any points for doing things that are easy."
        -- Sheridan to Garibaldi in Babylon 5:"The Geometry of Shadows"




More information about the MPlayer-DOCS mailing list