aboutsummaryrefslogtreecommitdiff
path: root/doc/forum/Need_something_more_powerful_than_Exclude/comment_7_e5d9fbf7e50476ce3a494541dd41d4d9._comment
blob: 91ad02d142cf083c8881bbd5295d5873e74ca35c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[[!comment format=mdwn
 username="https://launchpad.net/~beaufils"
 nickname="beaufils"
 subject="Does the exclude feature work at all?"
 date="2015-06-22T10:49:53Z"
 content="""
I am not sure if that is a bug or a feature, but it is annoying, definitively related to this post:

    $ ikiwiki --version
    ikiwiki version 3.20141016.2

    $ mkdir src ; echo A >src/get ; echo A >src/noget

    $ ikiwiki src out                          
    $ cat out/noget 
    A

    # Let's ask ikiwiki to forget noget
    $ ikiwiki src out --exclude noget          
    $ cat out/noget 
    A

    # No? Maybe with --rebuild?
    $ ikiwiki src out --exclude noget --rebuild
    $ cat out/noget 
    A

    # So let's remove it manually and try again
    $ rm out/noget 

    $ ikiwiki src out --exclude noget          
    $ cat out/noget
    cat: out/noget: No such file or directory

    # Hum are we sure it worked?
    $ ikiwiki src out --exclude noget --rebuild
    $ cat out/noget
    A

    # Nope :-(

I am really confused with the exclude feature and the way ikiwiki lookup files. Finally I tend to think this is a bug.

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?

--[[bbb]]
"""]]