Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Latest commit e1ef78a May 5, 2020 History
1 contributor

Users who have contributed to this file

executable file 23 lines (19 sloc) 450 Bytes
#! /usr/bin/perl
use strict;
use warnings;
my ($prefix) = $0 =~ /^(\/.*)\// or die "$0: need to be called with absolute path\n";
$ENV{'SGE_ROOT'} = $prefix;
$ENV{'PATH'} = $prefix . ':' . $ENV{'PATH'};
while (1) {
@ARGV or last;
substr($ARGV[0], 0, 1) eq '-' or last;
my $opt=shift;
if ($opt eq '--') {
last;
} elsif ($opt eq '--ary_index') {
$ENV{'SGE_TASK_ID'} = shift;
} else {
die "$0: opt $opt unimplemented\n";
}
}
exec @ARGV;