diff options
author | zsdc <taras@vyos.io> | 2022-05-05 14:35:14 +0300 |
---|---|---|
committer | zsdc <taras@vyos.io> | 2022-05-05 14:35:14 +0300 |
commit | 696e1200e9d0dc5821561e1c48bf65824b267649 (patch) | |
tree | 795ba2a0279efcc142c06a72f0f11f81bde47729 | |
parent | f2d58f06e9a36d511b56a3ba933f482c362f59e3 (diff) | |
download | vyos-build-696e1200e9d0dc5821561e1c48bf65824b267649.tar.gz vyos-build-696e1200e9d0dc5821561e1c48bf65824b267649.zip |
doc: T4415: Added back copyrights for components
Copyright information must not be deleted with the rest documentation
files.
-rwxr-xr-x | data/live-build-config/hooks/live/80-delete-docs.chroot | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/data/live-build-config/hooks/live/80-delete-docs.chroot b/data/live-build-config/hooks/live/80-delete-docs.chroot index d08b8edd..fa1f5168 100755 --- a/data/live-build-config/hooks/live/80-delete-docs.chroot +++ b/data/live-build-config/hooks/live/80-delete-docs.chroot @@ -1,4 +1,6 @@ #!/bin/bash -# We do not need any documentation on the system. This frees 43MB. -rm -rf /usr/share/doc /usr/share/doc-base /usr/share/docutils +# We do not need any documentation on the system. This frees some space. +# Copyright/licenses files are ignored for deletion +shopt -s extglob +rm -rf /usr/share/doc/*/!(copyright) /usr/share/doc-base |