X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2B%2B%2Fswig%2Fconfigure;h=953e2810e75b003c473f165c6820a3000d054e48;hb=dcf20fa20d76bda865a381bdedbd87f91b6ca43f;hp=5a9fa52b9ed904d23465ff6d0824cfd1e32dfb0f;hpb=ccdf1f8b1a0a81a30058240818e0e6e221c84bb6;p=melted diff --git a/mlt++/swig/configure b/mlt++/swig/configure index 5a9fa52..953e281 100755 --- a/mlt++/swig/configure +++ b/mlt++/swig/configure @@ -1,31 +1,42 @@ -#!/bin/env sh +#!/usr/bin/env sh which swig > /dev/null 2>&1 -[ $? != 0 ] && echo Please install swig +[ $? != 0 ] && echo "Please install swig" && exit 1 which mlt-config > /dev/null 2>&1 -[ $? != 0 ] && echo Please install mlt +[ $? != 0 ] && echo "Please install mlt" && exit 1 if [ "$1" = "all" ] -then languages="java perl python ruby tcl" +then languages="perl python ruby tcl" elif [ "$1" != "" ] then languages=$* else echo "Usage: ./configure [ all | language * ]" exit 0 fi +for i in perl python ruby tcl +do + rm -f .$i +done + for i in $languages do echo -n "Configuring $i ... " - cd $i - output=`./build 2>/dev/null` - if [ $? == 0 ] - then echo "OK" - elif [ "$output" == "" ] + if [ -d "$i" ] then - echo "Failed" + cd $i && + output=`./build 2>/dev/null` + if [ $? == 0 ] + then echo "OK" + touch ../.$i + elif [ "$output" == "" ] + then + echo "Failed" + else + echo $output + fi + cd .. else - echo $output + echo "Unknown" fi - cd .. done