checkin of last changes for 2.9, mostly docs
[TestXSLT.git] / libxml2-helper.sh
1 #!/bin/sh
2
3 echo executing $0
4 echo ACTION is $ACTION
5 echo PWD is `pwd`
6
7 SUBDIR=libxml2
8 GNUSTYLEPREFIX=$TARGET_BUILD_DIR/libxml2-gnustyle
9 ICONVPREFIX=$TARGET_BUILD_DIR/libiconv-gnustyle
10
11 # make sure things match our expectations
12 #
13 if [ ! -d $SUBDIR ]; then
14         echo no $SUBDIR dir in current dir `pwd`, cannot continue!
15         exit 1
16 fi
17
18
19 if [ x$ACTION = "xclean" ]; then
20
21         echo cleaning up...
22         rm -rf $GNUSTYLEPREFIX
23         cd $SUBDIR
24         make distclean
25
26 elif [ x$ACTION = "x" ]; then
27
28         echo building...
29
30         cd $SUBDIR
31
32         if [ ! -f Makefile ]; then
33
34                 echo no Makefile, running configure
35
36                 ./configure --prefix=$GNUSTYLEPREFIX --without-python --with-iconv=$ICONVPREFIX
37
38         fi
39
40         
41         if [ ! -d $GNUSTYLEPREFIX ]; then
42
43                 make install
44
45         fi
46
47
48 fi
49
50
51
52