Mercurial > repos > devteam > emboss_5
comparison emboss_single_outputfile_wrapper.pl @ 10:d49956b87f7e draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
| author | iuc |
|---|---|
| date | Wed, 08 Feb 2017 12:42:22 -0500 |
| parents | |
| children | dba489bfcd62 |
comparison
equal
deleted
inserted
replaced
| 9:511429456d3c | 10:d49956b87f7e |
|---|---|
| 1 #! /usr/bin/perl -w | |
| 2 use strict; | |
| 3 use File::Copy; | |
| 4 | |
| 5 my $cmd_string = join (" ",@ARGV); | |
| 6 my $results = `$cmd_string`; | |
| 7 my @files = split("\n",$results); | |
| 8 my $fileNameOut = $ARGV[6]; | |
| 9 my ($drive, $outputDir, $file) = File::Spec->splitpath( $fileNameOut ); | |
| 10 my $destination = $fileNameOut; | |
| 11 | |
| 12 foreach my $thisLine (@files) | |
| 13 { | |
| 14 if ($thisLine =~ /Created /) | |
| 15 { | |
| 16 $thisLine =~ /[\w|\.]+$/; | |
| 17 $thisLine =$&; | |
| 18 #print "outfile: $thisLine\n"; | |
| 19 #there is only one file to move, so we can quit after finding it | |
| 20 move($drive.$outputDir.$thisLine,$fileNameOut); | |
| 21 exit(1); | |
| 22 } | |
| 23 else | |
| 24 { | |
| 25 print $thisLine,"\n"; | |
| 26 } | |
| 27 } |
