diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-13 20:32:55 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-13 20:32:55 +0000 |
commit | 4d1e32528fcf9a44011184a99cff7493e363b400 (patch) | |
tree | 89adce63fe54a4e8410d6d66ae8c45b9b285a4f5 /make/calcdep.pl | |
parent | f4ccba3b6cfe45b7763440e2e69a9a0b7d98aba1 (diff) |
Force rebuild of symlinked modules when the source file changes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11709 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make/calcdep.pl')
-rwxr-xr-x | make/calcdep.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/make/calcdep.pl b/make/calcdep.pl index c2e9b9510..a4bb7f4d6 100755 --- a/make/calcdep.pl +++ b/make/calcdep.pl @@ -12,6 +12,11 @@ sub gendep { return $f2dep{$f} if exists $f2dep{$f}; $f2dep{$f} = ''; my %dep; + my $link = readlink $f; + if (defined $link) { + $link = "$basedir/$link" unless $link =~ m#^/#; + $dep{$link}++; + } open my $in, '<', $f or die "Could not read $f"; while (<$in>) { if (/^\s*#\s*include\s*"([^"]+)"/) { |