view fa_gc_content/setup.pl @ 0:8ed4fe2456f0 draft default tip

Uploaded
author qtrinh
date Fri, 09 Nov 2012 12:00:28 -0500
parents
children
line wrap: on
line source

#!/usr/bin/perl -w

# make a backup 
my $TOOL_XML="/mnt/galaxyTools/galaxy-central/tool_conf.xml";
print "\nmaking backup of $TOOL_XML ...";
system ("sudo cp  $TOOL_XML  $TOOL_XML.bak") || die ;
system ("sudo cp  tool_conf.xml  /mnt/galaxyTools/galaxy-central/") || die ;

my $DIR="/mnt/galaxyTools/galaxy-central/tools/qtrinh";
if (! -e $DIR) {
	system ("sudo mkdir $DIR") || die ;
}

system ("sudo cp  gc_content.xml gc_content.pl $DIR") || die ;

system ("sudo chown -R galaxy:galaxy $DIR") || die ;
system ("sudo chmod -R a+rx  $DIR") || die ;

print "\n\ndone setting up ... please restart Galaxy ...\n\n";