File: perlscript_uselib

package info (click to toggle)
hhsuite 3.3.0%2Bds-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,084 kB
  • sloc: cpp: 24,690; perl: 5,022; python: 3,017; ansic: 2,556; makefile: 111; sh: 111
file content (102 lines) | stat: -rw-r--r-- 3,909 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Description: Perl script use lib
  * Set paths to hhsuite components for Perl scripts.
Author: Laszlo Kajan <lkajan@rostlab.org>
--- hhsuite.orig/scripts/hhmakemodel.pl
+++ hhsuite/scripts/hhmakemodel.pl
@@ -28,7 +28,7 @@
 
 #     We are very grateful for bug reports! Please contact us at soeding@mpibpc.mpg.de
 
-use lib $ENV{"HHLIB"}."/scripts";
+use lib ( $ENV{"HHLIB"} || '/usr/share/hhsuite' )."/scripts";
 use HHPaths;   # config file with path variables for nr, blast, psipred, pdb, dssp etc.
 use strict;
 use Align;
--- hhsuite.orig/scripts/create_profile_from_hhm.pl
+++ hhsuite/scripts/create_profile_from_hhm.pl
@@ -27,7 +27,7 @@
 
 #     We are very grateful for bug reports! Please contact us at soeding@mpibpc.mpg.de
 
-use lib $ENV{"HHLIB"}."/scripts";
+use lib ( $ENV{"HHLIB"} || '/usr/share/hhsuite' )."/scripts";
 use HHPaths;   # config file with path variables for nr, blast, psipred, pdb, dssp etc.
 use strict;
 
--- hhsuite.orig/scripts/create_profile_from_hmmer.pl
+++ hhsuite/scripts/create_profile_from_hmmer.pl
@@ -27,7 +27,7 @@
 
 #     We are very grateful for bug reports! Please contact us at soeding@mpibpc.mpg.de
 
-use lib $ENV{"HHLIB"}."/scripts";
+use lib ( $ENV{"HHLIB"} || '/usr/share/hhsuite' )."/scripts";
 use HHPaths;   # config file with path variables for nr, blast, psipred, pdb, dssp etc.
 use strict;
 
--- hhsuite.orig/scripts/multithread.pl
+++ hhsuite/scripts/multithread.pl
@@ -29,7 +29,7 @@
 
 #     We are very grateful for bug reports! Please contact us at soeding@mpibpc.mpg.de
 
-use lib $ENV{"HHLIB"}."/scripts";
+use lib ( $ENV{"HHLIB"} || '/usr/share/hhsuite' )."/scripts";
 use HHPaths;   # config file with path variables for nr, blast, psipred, pdb, dssp etc.
 use strict;
 use POSIX;
--- hhsuite.orig/scripts/pdb2fasta.pl
+++ hhsuite/scripts/pdb2fasta.pl
@@ -26,7 +26,7 @@
 
 #     We are very grateful for bug reports! Please contact us at soeding@mpibpc.mpg.de
 
-use lib $ENV{"HHLIB"}."/scripts";
+use lib ( $ENV{"HHLIB"} || '/usr/share/hhsuite' )."/scripts";
 use HHPaths;   # config file with path variables for nr, blast, psipred, pdb, dssp etc.
 use strict;
 $|= 1; # Activate autoflushing on STDOUT
--- hhsuite.orig/scripts/pdbfilter.pl
+++ hhsuite/scripts/pdbfilter.pl
@@ -26,7 +26,7 @@
 
 #     We are very grateful for bug reports! Please contact us at soeding@mpibpc.mpg.de
 
-use lib $ENV{"HHLIB"}."/scripts";
+use lib ( $ENV{"HHLIB"} || '/usr/share/hhsuite' )."/scripts";
 use HHPaths;   # config file with path variables for nr, blast, psipred, pdb, dssp etc.
 use strict;
 
--- hhsuite.orig/scripts/renumberpdb.pl
+++ hhsuite/scripts/renumberpdb.pl
@@ -27,7 +27,7 @@
 
 #     We are very grateful for bug reports! Please contact us at soeding@mpibpc.mpg.de
 
-use lib $ENV{"HHLIB"}."/scripts";
+use lib ( $ENV{"HHLIB"} || '/usr/share/hhsuite' )."/scripts";
 use HHPaths;   # config file with path variables for nr, blast, psipred, pdb, dssp etc.
 use Align;     # Needleman-Wunsch and Smith-Waterman alignment functions
 use File::Temp qw/ tempfile /;
--- hhsuite.orig/scripts/splitfasta.pl
+++ hhsuite/scripts/splitfasta.pl
@@ -26,7 +26,7 @@
 
 #     We are very grateful for bug reports! Please contact us at soeding@mpibpc.mpg.de
 
-use lib $ENV{"HHLIB"}."/scripts";
+use lib ( $ENV{"HHLIB"} || '/usr/share/hhsuite' )."/scripts";
 use HHPaths;   # config file with path variables for nr, blast, psipred, pdb, dssp etc.
 use strict;
 use warnings;
--- hhsuite.orig/scripts/addss.pl
+++ hhsuite/scripts/addss.pl
@@ -28,7 +28,7 @@
 
 #     We are very grateful for bug reports! Please contact us at soeding@mpibpc.mpg.de
 
-use lib $ENV{"HHLIB"} . "/scripts";
+use lib ( $ENV{"HHLIB"} || '/usr/share/hhsuite' )."/scripts";
 use HHPaths;    # config file with path variables for nr, blast, psipred, pdb, dssp etc.
 use Align;      # Needleman-Wunsch and Smith-Waterman alignment functions
 use File::Temp qw/ tempfile tempdir /;