summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-10-14 20:28:26 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-10-14 20:28:26 (GMT)
commit5f17827df41769cf8874f98c753d1f4901476ebb (patch)
tree047df42f575ff07b81661c8abff553bd6cd9c863 /bin
parent03b8c2914878698812602d77e5e6a255976f1f8d (diff)
downloadhdf5-5f17827df41769cf8874f98c753d1f4901476ebb.zip
hdf5-5f17827df41769cf8874f98c753d1f4901476ebb.tar.gz
hdf5-5f17827df41769cf8874f98c753d1f4901476ebb.tar.bz2
[svn-r7627] Purpose:
Bug Fix Description: The Dependencies files for fortran/ weren't being generated properly. The "top_srcdir" variable was pointing to the src/fortran directory instead of the src/ directory. This is correct as far as configure's concerned, but our code needs the src/ directory to work. Solution: Remove the /fortran/.. from the end of top_srcdir if it exists there. Platforms tested: Arabica (just needed to check that Fortran compiles okay). Misc. update:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dependencies8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/dependencies b/bin/dependencies
index f653708..b7b3789 100755
--- a/bin/dependencies
+++ b/bin/dependencies
@@ -24,6 +24,14 @@ while ($_ = shift @ARGV) {
$srcdir =~ s/\./\\\./g;
} elsif (/^--top_srcdir=([^ \t\n]*)/) {
$top_srcdir = $1;
+
+ # Trim off the path name if we're interested in the previous path.
+ if ($top_srcdir =~ /\/fortran\/\.\.$/) {
+ $top_srcdir =~ s/\/fortran\/\.\.$//;
+ } elsif ($top_srcdir =~ /\/c\+\+\/\.\.$/) {
+ $top_srcdir =~ s/\/c\+\+\/\.\.$//;
+ }
+
$top_srcdir =~ s/\./\\\./g;
} elsif (/^--top_builddir=([^ \t\n]*)/) {
$top_builddir = $1;