#!/bin/sh
#
# Mn_Fit Tutorial
# Makes README with list of macros
# and with the header from each file
#
#for i in `find . -name '*.mnf' -print`; do
#
SAVDIR=`pwd`

cd $MN_FIT/tutorial
CURDIR=`pwd`
if [ `echo $CURDIR | grep -c tutorial` -eq 0 ]; then
    echo "Problems setting directory to $MN_FIT/help/tutorial"
    exit
fi

echo "List of the Mn_Fit macros in this directory" >README
#
# Add the macros to the README
#
for i in *.mnf; do
  echo "" >>README
  echo "$i" >>README
  head -n 4 $i >>README
done
#
cd $SAVDIR
exit
