#!/bin/sh # lgfextract.sh - perform extraction upon file.lgf USAGE="usage: $0 file.lgf" case $# in 1) file=$1 ;; *) echo $USAGE exit 1 ;; esac temp=lgfextract$$.cnf trap 'rm -f $temp; exit 1' 1 2 15 echo include diglog.cnf >$temp echo do load $file >>$temp echo cstop off >>$temp echo do extract >>$temp echo do save $file >>$temp # perform the action:- # a definition file is generated as a side-effect of loading a # page with simulation on, so no further action need be taken. echo do exit >>$temp diglog -c $temp retval=$? rm -f $temp exit $retval