]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Force rebuild of symlinked modules when the source file changes
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 13 Sep 2009 20:32:55 +0000 (20:32 +0000)
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 13 Sep 2009 20:32:55 +0000 (20:32 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11709 e03df62e-2008-0410-955e-edbf42e46eb7

make/calcdep.pl

index c2e9b951099a7f76b63bd247184ea1e807621813..a4bb7f4d6e44c7738eb6fff80158cca51def9227 100755 (executable)
@@ -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*"([^"]+)"/) {