[MPlayer-dev-eng] [PATCH] matroska autodetection cleanup

Torinthiel torinthiel at megapolis.pl
Wed Aug 4 20:04:13 CEST 2004


Matroska during it's autodetection makes some mess - it changes $TMPC to
.cpp (which is required as it's C++ and there is no cpp_check function)
and after the test removes it's file and restores $TMPC

I think the cleaner solution would be to temporary store $TMPCPP in
$TMPC and after the tests only restore $TMPC, leaving deleting $TMPCPP
to standard cleanup after configuring everything.

This patch attempts to do so. Ok to apply?
Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   torinthiel(at)megapolis(dot)pl
   gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8  7346 2B6E 39F2 B069 01F1
 "No classmates may be used during this examination"
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.889
diff -u -r1.889 configure
--- configure	2 Aug 2004 04:24:36 -0000	1.889
+++ configure	4 Aug 2004 18:00:03 -0000
@@ -4877,7 +4877,7 @@
 if test "$_matroska_external" != no ; then
   _matroska_external=no
   _TMPC=$TMPC
-  TMPC=${TMPC}pp
+  TMPC=$TMPCPP
   cat > $TMPC << EOF
 #include <ebml/EbmlVersion.h>
 #include <matroska/KaxVersion.h>
@@ -4901,7 +4901,6 @@
       _inc_extra=$_saved_inc_extra
     fi
   fi
-  rm ${TMPC} > /dev/null 2> /dev/null
   TMPC=$_TMPC
   if test "$_matroska_external" = yes ; then
     _ld_matroska="-lmatroska -lebml -lstdc++"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040804/e865b289/attachment.pgp>


More information about the MPlayer-dev-eng mailing list