summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-07-29 19:23:54 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-07-29 19:23:54 (GMT)
commit1eb74205d4d8b7a4fda07e2ffa794c491d7ebd6a (patch)
treee3fc5f10f8de0125db5e623afe21f4bb1984e436 /bin
parent5fea487a8807bc75b4ee01da7fe0486ad5249367 (diff)
downloadhdf5-1eb74205d4d8b7a4fda07e2ffa794c491d7ebd6a.zip
hdf5-1eb74205d4d8b7a4fda07e2ffa794c491d7ebd6a.tar.gz
hdf5-1eb74205d4d8b7a4fda07e2ffa794c491d7ebd6a.tar.bz2
[svn-r7273] Purpose:
Update/Fix Description: The Dependencies files weren't begin generated properly for C++. Solution: Modified the "dependencies" script to use "top_srcdir" only instead of "srcdir", which tended to confuse matters. Regenerated the Dependencies files. Platforms tested: Arabica (Small changes) Misc. update:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dependencies8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/dependencies b/bin/dependencies
index 166e6e7..6893b72 100755
--- a/bin/dependencies
+++ b/bin/dependencies
@@ -14,16 +14,13 @@
#
my $depend_file;
my $new_depend_file;
+
my $srcdir;
my $top_srcdir;
my $top_builddir;
while ($_ = shift @ARGV) {
- if (/^--srcdir=([^ \t\n]*)/) {
- $srcdir = $1;
- $srcdir =~ s/\+/\\\+/g;
- $srcdir =~ s/\./\\\./g;
- } elsif (/^--top_srcdir=([^ \t\n]*)/) {
+ if (/^--top_srcdir=([^ \t\n]*)/) {
$top_srcdir = $1;
$top_srcdir =~ s/\+/\\\+/g;
$top_srcdir =~ s/\./\\\./g;
@@ -43,7 +40,6 @@ open(NEW, ">$new_depend_file") || die "cannot open file $new_depend_file: $!\n";
while (<DEPEND>) {
s/\.o(\b)/\.lo$1/g;
- s/ $srcdir/ \$\(srcdir\)/g;
s/ $top_srcdir/ \$\(top_srcdir\)/g;
s/ $top_builddir/ \$\(top_builddir\)/g;
print NEW $_;