1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
  
     | 
    
      Author: Olivier Sallou <olivier.sallou@irisa.fr>
Subject: set binary path
Last-Updated: 06/12/11
Description:
update path for binaries to match gmod chado installation
--- a/lib/Bio/Chado/Builder.pm
+++ b/lib/Bio/Chado/Builder.pm
@@ -97,12 +97,12 @@
       my $result = `bin/gmod_add_organism.pl --name_only --common_name $db_org`;
       unless ($result) {
           print "Adding $db_org to the database...\n";
-          system('bin/gmod_add_organism.pl','--common_name',$db_org);
+          system('/usr/share/gmod/chado/bin/gmod_add_organism.pl','--common_name',$db_org);
       }  
   } 
 
   #set the chado schema version in the database
-  system("gmod_chado_properties.pl --dbprofile $db_name --force --version $schema_version"); 
+  system("/usr/share/gmod/chado/bin/gmod_chado_properties.pl --dbprofile $db_name --force --version $schema_version"); 
 
 }
 
@@ -134,7 +134,7 @@
 
   if (looks_like_number($version) and $version < $schema_version) {
     print "Attempting schema update.\n";
-    system("gmod_update_chado.pl --dbprofile $db_name");
+    system("/usr/share/gmod/chado/bin/gmod_update_chado.pl --dbprofile $db_name");
   } 
   elsif (looks_like_number($version) and $version >= $schema_version) {
     print "No update necessary.\n";
 
     |