Package: openmolcas / 20.10-2

verify_default_directories.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: openmolcas/sbin/verify
===================================================================
--- openmolcas.orig/sbin/verify
+++ openmolcas/sbin/verify
@@ -136,8 +136,8 @@ if (-t select and not $opt{debug} and no
 }
 
 # store environment info
-my $MOLCAS = $ENV{"MOLCAS"} or
-  die "MOLCAS not set, use $DRIVER_base verify\n";
+my $MOLCAS; 
+$MOLCAS = $ENV{"MOLCAS"} or $MOLCAS = '/usr/share/openmolcas';
 my $MOLCAS_ID=`cd $MOLCAS ; $MOLCAS_DRIVER version -l`;
 chomp ($MOLCAS_ID);
 my $MACHINE=`uname -a`;
@@ -178,7 +178,7 @@ my $testdir;
 if ($opt{path}) {
         $testdir = File::Spec->rel2abs($opt{path});
 } else {
-        $testdir = File::Spec->catdir ($MOLCAS, 'test');
+        $testdir = cwd();
 }
 my $tmpdir;
 if ($opt{tmp}) {