vim: be more careful when removing the documentation
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 5 Dec 2016 20:36:32 +0000 (21:36 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 5 Dec 2016 21:55:36 +0000 (22:55 +0100)
commitf7a07f42f70a73806fd2f6bf3662fc6907845fe9
tree097c391d69749f10f34bec8843ceaec76b248257
parent41444d7f892b44c87d3b08e7ba1824b9cb9ee9a8
vim: be more careful when removing the documentation

The current VIM_REMOVE_DOCS hook removes all .txt files from
/usr/share/vim. Unfortunately, this also removes the rgb.txt file,
which is needed at runtime for vim, as reported in bug #9466.

This commit changes VIM_REMOVE_DOCS to remove only
/usr/share/vim/vim*/doc/. Size-wise, it's equivalent because:

 - We are no longer removing a few README.txt in other directories,
   taking more space.

 - We are now removing the /usr/share/vim/vim*/doc/ folder entirely,
   which contained a few files not named *.txt

So overall, the size of /usr/share/vim/ before and after this patch is
still 11MB.

Fixes bug #9466.

Reported-by: Mateusz Furdyna <sir.ferdek@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/vim/vim.mk