%// SCCSID(@(#)dos_rule.ds	1.3 LCC) Modified 19:44:14 11/23/92
%// Copyright (c) 1992 Locus Computing Corporation
%// All rights reserved.
%// This is an unpublished work containing CONFIDENTIAL INFORMATION
%// that is the property of Locus Computing Corporation.
%// Any unauthorized use, duplication or disclosure is prohibited.
%//
%// Rulefile for the DOS Merge icon.
%// For XDT version 3
%//
%// DOS executables must be readable.  They don't have to be marked executable.
%// There are three types of DOS executables, exe, com, and bat files.

icon_rules
{
  *.exe /FR
  {
    trigger_action: s1
    {
      dos -b $static_arg
    }

    trigger_action: s2
    {
      xdosopt $static_arg
    }

    trigger_action: s3
    {
      options=`( gti -t `( basename $static_arg ) 'Enter any options you require:' )

      if [ -ne $status 0 ]
	then
	  exit
      fi

      dos -b $static_arg $options
    }

    trigger_action: d1
    {
      dos -b $static_arg $dynamic_args
    }

    trigger_action: d3
    {
      options=`( gti -t `( basename $static_arg ) 'Enter any options you require:' )

      if [ -ne $status 0 ]
	then
	  exit
      fi

      dos -b $static_arg $options $dynamic_args
    }
  }

  *.com /FR
  {
    trigger_action: s1
    {
      dos -b $static_arg
    }

    trigger_action: s2
    {
      xdosopt $static_arg
    }

    trigger_action: s3
    {
      options=`( gti -t `( basename $static_arg ) 'Enter any options you require:' )

      if [ -ne $status 0 ]
	then
	  exit
      fi

      dos -b $static_arg $options
    }

    trigger_action: d1
    {
      dos -b $static_arg $dynamic_args
    }

    trigger_action: d3
    {
      options=`( gti -t `( basename $static_arg ) 'Enter any options you require:' )

      if [ -ne $status 0 ]
	then
	  exit
      fi

      dos -b $static_arg $options $dynamic_args
    }
  }

  *.bat /FR
  {
    trigger_action: s1
    {
      dos -b $static_arg
    }

    trigger_action: s2
    {
      xdosopt $static_arg
    }

    trigger_action: s3
    {
      options=`( gti -t `( basename $static_arg ) 'Enter any options you require:' )

      if [ -ne $status 0 ]
	then
	  exit
      fi

      dos -b $static_arg $options
    }

    trigger_action: d1
    {
      dos -b $static_arg $dynamic_args
    }

    trigger_action: d3
    {
      options=`( gti -t `( basename $static_arg ) 'Enter any options you require:' )

      if [ -ne $status 0 ]
	then
	  exit
      fi

      dos -b $static_arg $options $dynamic_args
    }
  }
}
