File: 20_no_DIALIGN2_DIR.patch

package info (click to toggle)
dialign 2.2.1-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 912 kB
  • sloc: ansic: 4,885; xml: 401; makefile: 34
file content (33 lines) | stat: -rw-r--r-- 1,140 bytes parent folder | download | duplicates (6)
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
Author: Charles Plessy <charles-debian-nospam@plessy.org>
License: public domain.
Description: Gives a default value to par_file so that the environment variable 
             DIALIGN2_DIR is optional

--- dialign-2.2.1.orig/src/dialign.c
+++ dialign-2.2.1/src/dialign.c
@@ -296,10 +296,13 @@
 
  if ((par_file = getenv(dialign_dir)) == NULL)
    {
-     printf("\n \n \n    Please set the environmentvariable DIALIGN2_DIR \n");
-     printf("    as described in the README file \n"); 
-     exit(1);
-   }
+	   par_file = "/usr/share/dialign/" ; /* Default value for Debian, makes the environment variable optional */
+	
+/*     printf("\n \n \n    Please set the environmentvariable DIALIGN2_DIR \n");
+ *    printf("    as described in the README file \n"); 
+ *    exit(1);
+ */
+ }
 
  argnum = argc;
 
@@ -523,6 +526,7 @@
    printf(" to a directory containing the files \n\n");
    printf("   BLOSUM \n   tp400_dna\n   tp400_prot \n   tp400_trans \n\n" );
    printf(" These files should be contained in the DIALIGN package \n\n\n" ) ;
+   printf(" See /usr/share/doc/dialign/README.Debian for more details \n" ) ;
    exit(1) ;