#! /bin/sh HEURISTIC=`mktemp` write_heuristic="no" cat ../configure.in | while read; do if echo $REPLY|grep "START HARDWARE HEURISTIC" >/dev/null; then write_heuristic="yes" continue; fi if echo $REPLY|grep "END HARDWARE HEURISTIC" >/dev/null; then write_heuristic="no" fi if test "${write_heuristic}" = "yes"; then if echo $REPLY|grep "AC_DEFINE">/dev/null; then continue; fi if echo $REPLY|grep "^echo">/dev/null; then continue; fi if echo $REPLY|grep "exit 1">/dev/null; then continue; fi echo $REPLY >>${HEURISTIC} fi done cat html-source/head.html echo "" echo "" grep ".*: \(\".*\"\)\|@" ../setup.data | while read; do #echo $REPLY if echo $REPLY|grep ": @any" >/dev/null; then continue; fi if echo $REPLY|grep ": @" >/dev/null; then entry=`echo $REPLY|sed --expression="s/.*: \(@.*\)/\1/"` desc=`grep "${entry}:" ../setup.data|sed --expression="s/.*\"\(.*\)\".*/\1/"` echo "" continue; fi desc=`echo $REPLY|sed --expression="s/.*\"\(.*\)\".*/\1/"` driver=`echo $REPLY|sed --expression="s/\(.*\):.*/\1/"` if test "$driver" = "any" -o "$driver" = "none"; then continue; fi if echo $driver|grep @ >/dev/null; then echo "" true; else source ${HEURISTIC} if ! echo "${lirc_driver}"|grep lirc_dev>/dev/null; then lirc_driver="none" fi echo -n "" fi done echo "
Hardwareconfigure --with-driver optionRequired LIRC kernel moduleslircd driverdefault lircd and lircmd config files
${desc}
${desc}
${desc}" if test -f html-source/${driver}.html; then driver_doc=${driver} elif test -f `echo html-source/${driver}.html|sed --expression="s/_/-/"`; then driver_doc=`echo $driver|sed --expression="s/_/-/"` else driver_doc="" fi if test "$driver_doc" != ""; then echo -n "${driver}" else echo -n "${driver}" fi echo "${lirc_driver}${HW_DEFAULT#???}${lircd_conf}
${lircmd_conf}
" cat html-source/foot.html rm ${HEURISTIC}