OSDN Git Service

binding with libharu.
[putex/putex.git] / src / texsourc / lib / libhpdf / buildconf.sh
1 #!/bin/sh
2
3 eval `grep '^HPDF_EXTRA_VERSION=' configure.in`
4 case "$HPDF_EXTRA_VERSION" in
5   *-dev)
6     rebuildok=1
7     ;;
8   *)
9     rebuildok=0
10     ;;
11 esac
12
13 cvsclean=0
14
15 while test $# -gt 0; do
16   if test "$1" = "--force"; then
17     rebuildok=1
18     echo "Forcing buildconf"
19   fi
20   if test "$1" = "--clean"; then
21     cvsclean=1
22   fi
23   shift
24 done
25
26 if test "$rebuildok" = "0"; then
27   echo "You should not run buildconf in a release package."
28   echo "use buildconf --force to override this check."
29   exit 1
30 fi
31
32 if test "$cvsclean" = "1"; then
33         echo "Cleaning autogenerated files"
34         ${MAKE:-make} -s -f build.mk cvsclean
35 else 
36         ${MAKE:-make} -s -f build.mk
37 fi
38