diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-10-05 14:08:46 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-10-05 14:33:23 -0400 |
commit | 666a9613a12e3b3d36cdd1e818c44f1890f05b0d (patch) | |
tree | a6647cb17401f3f49feb8e13044c939811ab055c /IkiWiki.pm | |
parent | 89b65695e778699742bcf93b0ab0304fd53e30ca (diff) | |
download | ikiwiki-666a9613a12e3b3d36cdd1e818c44f1890f05b0d.tar ikiwiki-666a9613a12e3b3d36cdd1e818c44f1890f05b0d.tar.gz |
implement links dependencies
Involved some code refactoring so that same code that detects
link changes for backlinks updating can be used for link dependency
checking. The nice thing is that link dep checking is thus
comopletly free!
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 0bb0c1746..b895e12fc 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -31,6 +31,7 @@ our $installdir='/usr'; # INSTALLDIR_AUTOREPLACE done by Makefile, DNE # Page dependency types. our $DEPEND_CONTENT=1; our $DEPEND_PRESENCE=2; +our $DEPEND_LINKS=4; # Optimisation. use Memoize; @@ -1788,6 +1789,8 @@ sub add_depends ($$;@) { $deptype=$deptype & ~$DEPEND_CONTENT | $DEPEND_PRESENCE if $params{presence} && $limited; + $deptype=$deptype & ~$DEPEND_CONTENT | $DEPEND_LINKS + if $params{links} && $limited; } if ($simple) { |