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