Oliver wrote:
I tried compiling and installing on Solaris. It all builds fine but I
get the following message repeated a number of times:
./man/mh-chart-gen.sh: !: not found
! is not available in pure Bourne shell and should be avoided.
There are several options, we could use:
echo $i | grep 'mh-chart.man' >/dev/null && continue
or:
expr $i : .*/mh-chart.man >/dev/null && continue
I think continue works in any reasonable /bin/sh.
Or we could avoid any forks by using a case statement:
case $i in
*/mh-chart.man) break;
*)
...
;;
esac
I'll change it to the case statement (without the break).
The script then goes on to complain about the -E option to grep (only
/usr/xpg4/bin/grep or egrep handle that on Solaris).
I think the easiest solution here to the roll the grep -E into the awk:
awk '/.SH SYNOPSIS/,/^(\.ad|typical usage:)/ { if ( $0 !~ /^(\.SH
SYNOPSIS|\.na|\.ad|typical usage:)/ ) print }'
Thanks. I'll change it to that.
David
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers