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