]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/forum/Need_something_more_powerful_than_Exclude/comment_7_e5d9fbf7e50476ce3a494541dd41d4d9._comment
(no commit message)
[git.ikiwiki.info.git] / doc / forum / Need_something_more_powerful_than_Exclude / comment_7_e5d9fbf7e50476ce3a494541dd41d4d9._comment
1 [[!comment format=mdwn
2  username="https://launchpad.net/~beaufils"
3  nickname="beaufils"
4  subject="Does the exclude feature work at all?"
5  date="2015-06-22T10:49:53Z"
6  content="""
7 I am not sure if that is a bug or a feature, but it is annoying, definitively related to this post:
9     $ ikiwiki --version
10     ikiwiki version 3.20141016.2
12     $ mkdir src ; echo A >src/get ; echo A >src/noget
14     $ ikiwiki src out                          
15     $ cat out/noget 
16     A
18     # Let's ask ikiwiki to forget noget
19     $ ikiwiki src out --exclude noget          
20     $ cat out/noget 
21     A
23     # No? Maybe with --rebuild?
24     $ ikiwiki src out --exclude noget --rebuild
25     $ cat out/noget 
26     A
28     # So let's remove it manually and try again
29     $ rm out/noget 
31     $ ikiwiki src out --exclude noget          
32     $ cat out/noget
33     cat: out/noget: No such file or directory
35     # Hum are we sure it worked?
36     $ ikiwiki src out --exclude noget --rebuild
37     $ cat out/noget
38     A
40     # Nope :-(
42 I am really confused with the exclude feature and the way ikiwiki lookup files. Finally I tend to think this is a bug.
44 Is there a way to make ikiwiki consider that a file in the `srcdir` should not be present in the `destdir` and thus removed if present?
46 --[[bbb]]
47 """]]