File: setBinPathForBuilder

package info (click to toggle)
libchado-perl 1.31-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 44,716 kB
  • sloc: sql: 282,721; xml: 192,553; perl: 25,524; sh: 102; python: 73; makefile: 57
file content (31 lines) | stat: -rw-r--r-- 1,260 bytes parent folder | download | duplicates (3)
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";