diff options
| author | Mhd Sulhan <ms@kilabit.info> | 2015-11-20 13:33:33 +0700 |
|---|---|---|
| committer | Mhd Sulhan <ms@kilabit.info> | 2015-11-20 13:33:33 +0700 |
| commit | bc3d6d07786b860629adfc1437796e7bcf6a06e8 (patch) | |
| tree | f81b71a5ed98f153a3c6300cf74e4fa8168bb979 /scripts | |
| parent | 90d1bfac9a11f7a7780af19cd46cb47cf495755f (diff) | |
| download | arch-docker-bc3d6d07786b860629adfc1437796e7bcf6a06e8.tar.xz | |
scripts/bootstrap: add function to clean unneeded nodejs files.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/bootstrap.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index ceb68f5..9959f7e 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -89,3 +89,17 @@ bootstrap_clean_base() { rm -rf /usr/share/gtk-doc/* rm -rf /usr/share/readline/* } + +bootstrap_clean_nodejs() { + echo "==> cleaning nodejs ..." + rm -r /usr/share/icu/* + rm -r /usr/lib/node_modules/npm/doc/* + rm -r /usr/lib/node_modules/npm/html/doc/* + rm -r /usr/lib/node_modules/npm/man/* + rm -rf /usr/lib/python2.7/test + rm -rf /usr/share/perl5 + + find /usr/lib/node_modules -name man -type d -exec rm -rf '{}' \; + find /usr/lib/node_modules -name doc -type d -exec rm -rf '{}' \; + find /usr/lib/node_modules -name html -type d -exec rm -rf '{}' \; +} |
