: 'Make All MS Primitive'
# %W% %Q% %G% %Y%

echo "Making allmsprim.def..."
echo

if test -f allmsprim.def
then
  rm allmsprim.def
fi

if /bin/test $# -eq 0
then
  for i in *
  do
    if test -d $i
    then
      if test -f $i/$i.def
      then
        echo "  $i"
        cat $i/$i.def >> allmsprim.def
      fi
    fi
  done
  echo "end." >> allmsprim.def
else
  for i
  do
    if test -d $i
    then
      if test -f $i/$i.def
      then
        echo "  $i"
        cat $i/$i.def >> allmsprim.def
      else
	echo
	echo "Illegal realchip library name $i specified"
	echo
      fi
    else
      echo
      echo "Illegal realchip library name $i specified"
      echo
    fi
  done
  echo "end." >> allmsprim.def
fi

echo "Done"

