summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-05 20:12:51 +0200
committerGitHub <noreply@github.com>2022-05-05 20:12:51 +0200
commit80dff86d9522a0f9b1bd9a5962a2f6b7e2e23f7e (patch)
treeb8b3f41c3c7f2d03472082d9d489395f3a29d782
parentde4eaa65f7bfa54fa2ff8b739d10f31740e636b3 (diff)
parentb0ee2b1c59eb15a0b303b18fd801241ca00f57b0 (diff)
downloadvyos-build-80dff86d9522a0f9b1bd9a5962a2f6b7e2e23f7e.tar.gz
vyos-build-80dff86d9522a0f9b1bd9a5962a2f6b7e2e23f7e.zip
Merge pull request #231 from zdc/T4415-equuleus
doc: T4415: Added back copyrights for components
-rwxr-xr-xdata/live-build-config/hooks/live/80-delete-docs.chroot6
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