home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Education Sampler 1992 [NeXTSTEP]
/
Education_1992_Sampler.iso
/
Demos
/
DE_FrameMaker
/
FrameMaker.app
/
fminit2.0
/
MifRead
< prev
next >
Wrap
Text File
|
1992-08-24
|
1KB
|
40 lines
#!/bin/sh
# Shell file to convert various formats to Mif
#
# Edit as needed to execute other filters;
# The cases below should match the contents of file fminit2.0/suffixlist
#
# Filters provided with standard Maker:
# txttomif converts ascii text to mif
# mmltomif converts mml files to mif
# rtftomif converts Rich Text Format files to mif
# wntomif converts WriteNow Format files to mif
# 1.3binarytomif converts FrameMaker 1.3 format binary files to mif
#
# Inputs are:
# $1 = input file to be filtered (full path, example: /usr/drf/foo.bar )
# $2 = output file from filter (full path, example: /usr/drf/foo.tmp )
# $3 = input file's path ( example: /usr/drf )
# $4 = fminit2.0's directory
# $5 = maker's bin directory
# $6 = maker's user interface language
#
# See what the file type is, and run the appropriate program
case $1 in
*.txtalt) $4/txttomif <$1 >$2;;
# cd is dubious here.
*.mml|*.framemml) cd $4/..; $4/mmltomif -L$6 -I$3 -I~ -I. <$1 >$2;;
*.rtf) $4/rtftomif $1 $2;;
*.wn) $4/wntomif $4 $1 $2;;
*#D13)
# This is a fake suffix for Maker's use.
# dr=`expr "$1" : '\(.*\)#D13'` #-- expr loses if $1 long
dr=`echo "$1" | sed 's/#D13$//'`
# Line up with 1.3binarytomif's expectation of finding
# .makerinit under $FMHOME. The UNIX ports do this in
# a separate Shell script.
FMHOME=$FMHOME/fminit2.0; export FMHOME
exec $4/1.3binarytomif "$dr" "$2"
;;
esac