#! /bin/sh if test "x$1" = "x--help" || test "x$1" = "x-h"; then cat < OUTPUT] Convert wisdom (stdin) to C configuration routine (stdout). Options: -h, --help: print this help -V, --version: print version/copyright info EOF exit 0 fi if test "x$1" = "x--version" || test "x$1" = "x-V"; then cat <&2 exit 1 ;; esac cat < $tmp cat $tmp | sort | uniq | while read reg_nam; do echo " extern void $reg_nam(void *);" done echo " const struct solvtab_s s[] = {" cat $tmp | sort | uniq | while read reg_nam; do echo " { $reg_nam, \"$reg_nam\" }," done echo " { 0, 0 }" echo " };" echo " ${prefix}solvtab_exec(s, plnr);" echo "}"