Use empty string instead of "no"
[libquvi.git] / autogen.sh
blob4b5608a317c5df3da893c5715a32b9f1bac827d6
1 #!/bin/sh
2 # autogen.sh for libquvi.
4 source=.gitignore
5 cachedir=autom4te.cache
7 gen_manual()
9 echo "Generate manual..."
10 MAN=doc/man3/libquvi.3 ; POD=$MAN.pod ; VN=`./gen-ver.sh`
11 pod2man -c "libquvi manual" -n libquvi -s 3 -r "$VN" "$POD" "$MAN"
12 return $?
15 cleanup()
17 echo "WARNING!
18 Removes _files_ listed in $source and $cachedir directory.
19 Last chance to bail out (^C) before we continue."
20 read n1
21 [ -f Makefile ] && make distclean
22 for file in `cat $source`; do # Remove files only.
23 [ -e "$file" ] && [ -f "$file" ] && rm -f "$file"
24 done
25 [ -e "$cachedir" ] && rm -rf "$cachedir"
26 exit 0
29 help()
31 echo "Usage: $0 [-c|-h]
32 -h Show this help and exit
33 -c Make the source tree 'maintainer clean'
34 Run without options to (re)generate the configuration files."
35 exit 0
38 while [ $# -gt 0 ]
40 case "$1" in
41 -c) cleanup;;
42 -h) help;;
43 *) break;;
44 esac
45 shift
46 done
48 echo "Generate configuration files..."
49 autoreconf -if && gen_manual && echo "You can now run 'configure'"