From b0ee2b1c59eb15a0b303b18fd801241ca00f57b0 Mon Sep 17 00:00:00 2001 From: zsdc Date: Thu, 5 May 2022 14:35:14 +0300 Subject: doc: T4415: Added back copyrights for components Copyright information must not be deleted with the rest documentation files. --- data/live-build-config/hooks/live/80-delete-docs.chroot | 6 ++++-- 1 file 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 -- cgit v1.2.3