Commit 86747ddc authored by Christophe Massiot's avatar Christophe Massiot
Browse files

Fixed bugs.

parent 9c374559
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Makefile : Build vlc-contrib files # Makefile : Build vlc-contrib files
# *************************************************************************** # ***************************************************************************
# Copyright (C) 2003 VideoLAN # Copyright (C) 2003 VideoLAN
# $Id: Makefile,v 1.3 2003/11/23 13:06:43 massiot Exp $ # $Id: Makefile,v 1.4 2003/11/23 13:23:20 massiot Exp $
# #
# Authors: Christophe Massiot <massiot@via.ecp.fr> # Authors: Christophe Massiot <massiot@via.ecp.fr>
# #
...@@ -42,7 +42,7 @@ bin: contrib-macosx.tar.bz2 ...@@ -42,7 +42,7 @@ bin: contrib-macosx.tar.bz2
mkdir tmp mkdir tmp
bunzip2 -c $< | (cd tmp; tar xf -) bunzip2 -c $< | (cd tmp; tar xf -)
./change_prefix.sh tmp @@CONTRIB_PREFIX@@ $(PREFIX) ./change_prefix.sh tmp @@CONTRIB_PREFIX@@ $(PREFIX)
(cd tmp; tar cf -) | tar xf - (cd tmp; tar cf - .) | tar xf -
rm -rf tmp rm -rf tmp
clean-src: FORCE clean-src: FORCE
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# change_prefix.sh : allow to transfer a contrib dir # change_prefix.sh : allow to transfer a contrib dir
# *************************************************************************** # ***************************************************************************
# Copyright (C) 2003 VideoLAN # Copyright (C) 2003 VideoLAN
# $Id: change_prefix.sh,v 1.1 2003/11/23 13:06:43 massiot Exp $ # $Id: change_prefix.sh,v 1.2 2003/11/23 13:23:20 massiot Exp $
# #
# Authors: Christophe Massiot <massiot@via.ecp.fr> # Authors: Christophe Massiot <massiot@via.ecp.fr>
# #
...@@ -44,14 +44,17 @@ fi ...@@ -44,14 +44,17 @@ fi
cd $top_dir cd $top_dir
files=`find . -type f` files=`find . -type f`
for file in $files; do for file in $files; do
libs=`otool -L $file 2>/dev/null | grep $prefix | cut -d\ -f 1` if test ".`file $file | grep Mach-O`" != "." ; then
for i in "" $libs; do libs=`otool -L $file 2>/dev/null | grep $prefix | cut -d\ -f 1`
if ! test -z $i; then for i in "" $libs; do
install_name_tool -change $i \ if ! test -z $i; then
`echo $i | sed -e "s,$prefix,$new_prefix,"` \ install_name_tool -change $i \
$file `echo $i | sed -e "s,$prefix,$new_prefix,"` \
fi $file
done fi
sed -e "s,$prefix,$new_prefix,g" < $file > $file.tmp done
mv -f $file.tmp $file else
sed -e "s,$prefix,$new_prefix,g" < $file > $file.tmp
mv -f $file.tmp $file
fi
done done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment