summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks/live/80-delete-docs.chroot
blob: 8d99b6949c7c9baf20adff0a7af174da8c902ff6 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

# 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*|README*) /usr/share/doc-base

# We also do not need any manpages on the system since man-binary is missing.
# This also frees some space.
rm -rf /usr/share/man