summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-05 18:57:07 +0200
committerGitHub <noreply@github.com>2022-05-05 18:57:07 +0200
commit992c7b5e8a4e25b835d4cc8885bc474c6e4bf52f (patch)
treec0a6b5cc1c67b6516e4a13ce0af222354d925608
parentcaae86a8c028f32dc320cf2ca946646c27fb86bb (diff)
parent696e1200e9d0dc5821561e1c48bf65824b267649 (diff)
downloadvyos-build-992c7b5e8a4e25b835d4cc8885bc474c6e4bf52f.tar.gz
vyos-build-992c7b5e8a4e25b835d4cc8885bc474c6e4bf52f.zip
Merge pull request #230 from zdc/T4415-sagitta
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