4 ###APPDATE: Wed May 5 19:26:14 2010
12 #ENV variable MUST be defined somewhere,
13 #FOR perl to search modules from,
15 use lib
$ENV{XR_PERL_MODULE_DIR
};
17 use MyPlace
::Script
::Usage qw
/help_required help_even_empty/;
18 exit 0 if(help_required
($0,@ARGV));
19 #exit 0 if(help_even_empty($0,@ARGV));
23 exec($app) unless(@ARGV);
25 my ($xres,$yres,$depth,$rate) = qw
/1024 768 16 60/;
28 if($_ =~ /^(\d+)[xX](\d+)$/) {
32 elsif($_ =~ /^(\d+)[xX](\d+)-(\d+)$/) {
37 elsif($_ =~ /^(\d+)[xX](\d+)-(\d+)\@(\d+)$/) {
47 @args = ("-xres",$xres,"-yres",$yres,"-depth",$depth,@args);
48 print STDERR
join(" ",($app,@args)),"\n";