~ubuntu-branches/ubuntu/lucid/vlc/lucid-security

« back to all changes in this revision

Viewing changes to extras/contrib/change_prefix.sh

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2009-09-25 14:44:17 UTC
  • mfrom: (3.5.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090925144417-87vomt575d0agvqa
Tags: 1.0.2-1ubuntu1
* Merge from Debian unstable (LP: #435524), remaining changes:
  - build against xulrunner-dev instead of iceape-dev
  - build against libx264-dev and install libx264 plugin
  - add Xb-Npp header to vlc package
  - recommend vlc-plugin-pulse for vlc

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 if test ".`file $file | grep Mach-O`" != "." ; then
50
50
    echo "Changing prefixes of '$file'"
51
51
    islib=n
52
 
    if test ".`file $file | grep 'Mach-O dynamically'`" != "." ; then
 
52
    if test ".`file $file | grep 'dynamically linked shared library'`" != "." ; then
53
53
      islib=y
54
54
    fi
55
55
    libs=`otool -L $file 2>/dev/null | grep $prefix | cut -d\  -f 1`
58
58
      if ! test -z $i; then
59
59
        if test $islib = y -a $first = y; then
60
60
            install_name_tool -id `echo $i | sed -e "s,$prefix,$new_prefix,"` $file
 
61
            command="install_name_tool -id `echo $i | sed -e "s,$prefix,$new_prefix,"` $file"
61
62
            first=n
62
63
        else
63
64
            install_name_tool -change $i `echo $i | sed -e "s,$prefix,$new_prefix,"` $file
 
65
            command="install_name_tool -change $i `echo $i | sed -e "s,$prefix,$new_prefix,"` $file"
64
66
        fi
 
67
        echo "executing '$command'"
65
68
      fi
66
69
    done
67
70
  elif test ".`file $file | grep \"text\|shell\"`" != "." ; then