#!/usr/local/bin/perl

	$VERSION		= "1.0";
	$MOD_DATE		= "20.Jul.94";
	$AUTHOR			= "Paul Hulford";

# Pick the appropriate X editor for the platform. 

# ENV{'CPU`} is setup by the "hg" command.

$CPU 	= $ENV{'CPU'};

$| = 1;

while( length($ARGV[0]) )
{
	$_ = shift;
	$cmd .= '"'.$_.'" ' if( /\s/ ); 
	$cmd .= $_.' ' if( ! /\s/ );
}

system( "/usr/bin/dxnotepad $cmd" ) if( $CPU =~ /PMAX/ ); 
system( "/usr/openwin/bin/textedit $cmd" ) if( $CPU =~ /SUN4/ ); 
system( "/usr/bin/X11/xditview $cmd" ) if( $CPU =~ /SGI/ ); 
