Mercurial > repos > qtrinh > qtrinh_gc_content
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fa_gc_content/setup.pl Fri Nov 09 12:00:28 2012 -0500 @@ -0,0 +1,21 @@ +#!/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"; + +