#! /bin/bash # # This script converts the ASCII version of the manual saved by AmiPro # into a reasonably acceptable form of Texinfo. The output of this program # is fed into another program which inserts texinfo node and menu infomation. # # $Id$ # #set -x #rm -f *.txt orig=/usr1/home/joel/tmp/doc/relnotes inputfiles=`cd $orig ; echo *.txt` for i in $inputfiles do echo $i out=`echo $i | sed -e 's/\.txt$/.texi/'` # 1. Remove -Z and -M # 2. Tackle paragraph style issues # 3. Directive status code lines tr -d '\032\015' <${orig}/$i | sed -e 's//@chapter /' | sed -e 's//@section /' | sed -e 's//@subsection /' | sed -e 's//@subsection /' | sed -e 's///' | sed -e 's//@item /' | sed -e 's//@itemize /' | sed -e 's//@item /' | sed -e 's//@item /' | sed -e 's/
/@item /' | sed -e 's//@item /' | sed -e 's/