#!/bin/sh

#	id: %Z%%M% %I% %E%
#	purpose: %Y%
#	copyright: Copyright 1992 Sun Microsystems, Inc.  All Rights Reserved

PATH=/bin:/usr/bin:$PATH ; export PATH
myname=`basename $0`

FPATH=`dirname $0`:${FPATH:=.:$HOME/tokenizer}:${PATH}
export FPATH

if test -f forth.Z
then
  uncompress -f forth.Z
fi

if test -f tokenizer.exe.Z
then
  uncompress -f tokenizer.exe.Z
fi

usage () {
  echo "    usage: $myname  prog.fcode [ > prog.lst ] "
  exit 1
}

if test $# -eq 0
then 
	usage
fi

filename=$1

forth tokenize.exe -s " detokenize $filename"
