diff options
| author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-12-05 21:36:32 +0100 |
|---|---|---|
| committer | Peter Korsgaard <peter@korsgaard.com> | 2016-12-19 22:58:43 +0100 |
| commit | 8d58e8af9560c4687b9269043bc447d14e1e7ef0 (patch) | |
| tree | 522583b3d7e05c0f074f891abfa8034af0b1bb99 /package/vim/vim.mk | |
| parent | 7567aff8fcfbabece38b4969e93541706f7341c5 (diff) | |
| download | buildroot-8d58e8af9560c4687b9269043bc447d14e1e7ef0.tar.gz buildroot-8d58e8af9560c4687b9269043bc447d14e1e7ef0.zip | |
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>
(cherry picked from commit f7a07f42f70a73806fd2f6bf3662fc6907845fe9)
Diffstat (limited to 'package/vim/vim.mk')
| -rw-r--r-- | package/vim/vim.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/vim/vim.mk b/package/vim/vim.mk index d4a1f82028..308855eaee 100644 --- a/package/vim/vim.mk +++ b/package/vim/vim.mk @@ -61,7 +61,7 @@ define VIM_INSTALL_RUNTIME_CMDS endef define VIM_REMOVE_DOCS - find $(TARGET_DIR)/usr/share/vim -type f -name "*.txt" -delete + $(RM) -rf $(TARGET_DIR)/usr/share/vim/vim*/doc/ endef # Avoid oopses with vipw/vigr, lack of $EDITOR and 'vi' command expectation |

