added missing files
[TestXSLT.git] / target_libxslt.sh
1 #!/bin/sh
2
3 cd libxslt
4
5 if [ x$1 = 'xclean' ]; then
6
7         make clean
8         rm config.log
9         rm -rf $OBJROOT/libxslt/
10         exit
11
12 fi
13
14 if [ ! -f config.log ]; then
15
16         ./configure --disable-static --enable-shared --with-libxml-prefix=$OBJROOT/libxml2/ --prefix=$OBJROOT/libxslt/
17
18 fi
19
20 if [ ! -d $OBJROOT/libxslt/ ]; then
21
22         make install
23
24         LIBNAME=`find $OBJROOT/libxslt/lib/ -name "libxslt.*dylib" -type f`
25         LIBNAME=`basename $LIBNAME`
26         install_name_tool -id @executable_path/$LIBNAME $OBJROOT/libxslt/lib/$LIBNAME
27
28         LIBNAME=`find $OBJROOT/libxslt/lib/ -name "libexslt.*dylib" -type f`
29         LIBNAME=`basename $LIBNAME`
30         install_name_tool -id @executable_path/$LIBNAME $OBJROOT/libxslt/lib/$LIBNAME
31
32         LIBNAME=`find $OBJROOT/libxslt/lib/ -name "libxsltbreakpoint.*dylib" -type f`
33         LIBNAME=`basename $LIBNAME`
34         install_name_tool -id @executable_path/$LIBNAME $OBJROOT/libxslt/lib/$LIBNAME
35         
36 fi
37
38
39
40
41
42
43
44