Description of problem:
The command `publican print_unused` prints any and all xml files which are not linked into what publican would build, read they are orphaned. It would be useful if this functionality either extend to, or was available through an additional verb, for unreferenced image files.
Added print_unused_images action.
Added to branches/publican-2x and trunk.
Committed revision 1910.
]$ rpm -q publican
]$ cat /etc/redhat-release
Fedora release 16 (Verne)
Unused images (either unreferenced or commented out) are listed when "publican print_unused_images" is run.
Reading bug 754340 and thought I'd check if print_unused_images works with <graphic> tags. It doesn't.
1. Have image.svg in images.
$ ls en-US/images/
2. Refn the image using a <graphic> tag.
$ grep "image.svg" en-US/Chapter.xml
<graphic fileref="image.svg" />
3. run print_unused_images
$ publican print_unused_images
List of unused Image files in en-US
List of missing Image files in en-US
Note: tab completion also does not work with print_unused_images.
A: $ publican print_known | grep -c graphic
Graphic is not a supported tag, it's ridiculous to fail it for this reason.
B: Tab completion works but because there are two very similar actions you have to get a long way along for it to know which one to pick.
C: Please stop wasting my time by causing churn on validated bugs.
(In reply to comment #4)
> A: $ publican print_known | grep -c graphic
> Graphic is not a supported tag, it's ridiculous to fail it for this reason.
> B: Tab completion works but because there are two very similar actions you
> have to get a long way along for it to know which one to pick.
> C: Please stop wasting my time by causing churn on validated bugs.
Moving to verified.