
failat 10

echo ""
echo "Installing MultiPack..."
echo ""

if exists DOORS:
  if exists DOORS:MultiPack
  else
    echo "Creating the directory DOORS:MultiPack"
    makedir DOORS:MultiPack >nil:
  endif

  echo "Copying MultiPack executable to DOORS:MultiPack/"
  copy MultiPack DOORS:MultiPack >nil:

  echo "Copying the .fmt files to DOORS:MultiPack/"
  copy fmt/#?.fmt DOORS:MultiPack >nil:

  echo "Copying the .library files to your libs: directory"
  copy libs/#?.library libs: >nil:

  if exists DLGConfig:menu/MultiPack.menun
    echo ""
    echo "You already have a MultiPack menu, so it will not be"
    echo "overwritten. You may want to manually install the new"
    echo ".menun file and help files to get the most recent version"
  else
    echo "Copying MultiPack menu to your DLG Menu directory"
    copy menu/MultiPack.menun DLGConfig:Menu >nil:

    echo "Copying MultiPack Help Files to your DLG Menu/Multipack directory"
    copy menu/MultiPack/#? DLGConfig:Menu/Multipack all >nil:
  endif

else
  echo "You must assign DOORS: someplace before installing Multi-Pack."
endif

echo ""
