if  [  "`gaze  installed  |  grep  cups  |  cut  -d:  -f1`"  =  "cups"  ];  then
  echo  "This spell conflicts with cups and will cause it and any dependants to be dispelled."

  if  query  "Would you like to see a list of affected spells?  "  y;  then
    gaze  depends  cups
    echo  "cups"

    if  query  "Would you like to continue casting?  "  y;  then
      for  CASTED_SPELL  in  `gaze  depends  cups`;  do
        if  [  "`gaze  installed  |  grep  $CASTED_SPELL  |  cut  -d:  -f1`"  =  "$CASTED_SPELL"  ];  then
          dispel  $CASTED_SPELL
        fi
      done

      dispel  cups
    else
      return 1
    fi
  else
    if  query  "Would you like to continue casting?  "  y;  then
      for  CASTED_SPELL  in  `gaze  depends  cups`;  do
        if  [  "`gaze  installed  |  grep  $CASTED_SPELL  |  cut  -d:  -f1`"  =  "$CASTED_SPELL"  ];  then
          dispel  $CASTED_SPELL
        fi
      done

      dispel  cups
    else
      return 1
    fi
  fi
fi


default_pre_build
