Portability modifications to scripts
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 14 Jun 2004 08:35:51 +0000 (08:35 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 14 Jun 2004 08:35:51 +0000 (08:35 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@329 d19143bc-622f-0410-bfdd-b5b2a6649095

16 files changed:
configure
src/modules/configure
src/modules/core/configure
src/modules/core/transition_composite.c
src/modules/dv/configure
src/modules/fezzik/configure
src/modules/gtk2/configure
src/modules/inigo/configure
src/modules/normalize/configure
src/modules/resample/configure
src/modules/sdl/configure
src/modules/sdl/consumer_sdl.c
src/modules/sox/configure
src/modules/vorbis/configure
src/modules/westley/configure
src/modules/xine/configure

index a5f0312..c238296 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 function show_help
 {
@@ -120,10 +120,11 @@ do
        if [ -x src/$i/configure ]
        then
                [ $help = 0 ] && echo "Configuring `basename $i`:"
-               pushd src/$i > /dev/null
+               olddir=`pwd`
+               cd src/$i
                ./configure "$@"
                [ $? != 0 ] && exit 1
-               popd > /dev/null
+               cd $olddir
        fi
 done
 
index 6879efc..83b27c8 100755 (executable)
@@ -1,10 +1,10 @@
-#!/bin/bash
+#!/bin/sh
 
 # Clean up disables if not in help mode
 [ "$help" != "1" ] && rm -f disable-* producers.dat filters.dat transitions.dat consumers.dat
 
 # Create the make.inc file
-echo SUBDIRS = `find -type d -maxdepth 1 | grep -v CVS | grep -v "^.$" | sed 's/\.\///'` > make.inc
+echo SUBDIRS = `find . -type d -maxdepth 1 | grep -v CVS | grep -v "^.$" | sed 's/\.\///'` > make.inc
 
 # Iterate through arguments
 for i in "$@"
@@ -22,10 +22,11 @@ do
                if [ "$gpl" = "true" -o ! -f $i/gpl ]
                then
                        [ "$help" = "0" ] && echo "Configuring modules/$i:"
-                       pushd $i > /dev/null
+                       olddir2=`pwd`
+                       cd $i
                        ./configure "$@"
                        [ $? != 0 ] && exit 1
-                       popd > /dev/null
+                       cd $olddir2
                elif [ "$help" = "0" ]
                then
                        touch disable-$i
index 9373d83..818fe24 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index 88c1222..0119380 100644 (file)
@@ -1033,7 +1033,8 @@ static int transition_get_image( mlt_frame a_frame, uint8_t **image, mlt_image_f
                        
                        int32_t luma_softness = mlt_properties_get_double( properties, "softness" ) * ( 1 << 16 );
                        uint16_t *luma_bitmap = get_luma( properties, width_b, height_b );
-                       composite_line_fn line_fn = mlt_properties_get_int( properties, "_MMX" ) ? composite_line_yuv_mmx : NULL;
+                       //composite_line_fn line_fn = mlt_properties_get_int( properties, "_MMX" ) ? composite_line_yuv_mmx : NULL;
+                       composite_line_fn line_fn = NULL;
 
                        for ( field = 0; field < ( progressive ? 1 : 2 ); field++ )
                        {
index 9453267..4825f84 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index b7880ad..c56f34c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index c0d1688..8979d12 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index 9b1808f..c98c930 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index c89aba5..d47e494 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index 7e0f23a..649195e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index 1c40fac..e7572ca 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index eee6cdd..660169b 100644 (file)
@@ -131,7 +131,7 @@ mlt_consumer consumer_sdl_init( char *arg )
                        this->height = mlt_properties_get_int( this->properties, "height" );
                        
                        // Default window size
-                       this->window_width = ( float )this->height * this->display_aspect + 0.5;
+                       this->window_width = ( float )this->height * this->display_aspect;
                        this->window_height = this->height;
                }
                else
@@ -447,7 +447,7 @@ static int consumer_play_video( consumer_sdl this, mlt_frame frame )
                                        if ( this->rect.w > this->window_width )
                                        {
                                                this->rect.w = this->window_width;
-                                               this->rect.h = this_aspect / frame_aspect * this->window_height + 0.5;
+                                               this->rect.h = this_aspect / frame_aspect * this->window_height;
                                        }
                                }
                        }
@@ -462,11 +462,11 @@ static int consumer_play_video( consumer_sdl this, mlt_frame frame )
                        else if ( this->window_height * this->display_aspect > this->window_width )
                        {
                                this->rect.w = this->window_width;
-                               this->rect.h = this->window_width / this->display_aspect + 0.5;
+                               this->rect.h = this->window_width / this->display_aspect;
                        }
                        else
                        {
-                               this->rect.w = this->window_height * this->display_aspect + 0.5;
+                               this->rect.w = this->window_height * this->display_aspect;
                                this->rect.h = this->window_height;
                        }
                        
index 1a3f61f..15aa439 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index 77f3155..bf06011 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index b971570..ac2e83f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index 022c9cd..3c04324 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then