2 # autogen.sh for nomnom.
5 cachedir
=autom4te.cache
9 echo "Generate manual..."
10 M4
=m
4/version.
m4 ; MAN
=doc
/man
1/nomnom
.1 ; POD
=$MAN.pod
11 VER
=`perl -n -e'/(\d+)\.(\d+)\.(\d+)/ && print "$1.$2.$3"' < $M4` \
12 && pod2man
-c "nomnom manual" -n nomnom
-s 1 -r $VER $POD $MAN
19 Removes _files_ listed in $source and $cachedir directory.
20 Last chance to bail out (^C) before we continue."
22 for file in `cat $source`; do # Remove files only.
23 [ -e "$file" ] && [ -f "$file" ] && rm -f "$file"
25 [ -e "$cachedir" ] && rm -rf "$cachedir"
26 rmdir -p config.aux
2>/dev
/null
32 echo "Usage: $0 [-c|-h]
33 -h Show this help and exit
34 -c Make the source tree 'maintainer clean'
35 Run without options to (re)generate the configuration files."
50 echo "Generate configuration files..." &&
53 echo "You can now run 'configure'"