livecd-rootfs/live-build/ubuntu-touch/hooks/99-remove-documentation.chroot
Colin Watson 95246a6553 live-build/auto/config, live-build/ubuntu-touch: Copy a huge pile of
customisation by Ricardo Salveti from
lp:~phablet-team/touch-preview-images/ubuntu-build-phablet, which should
be close to enough for the architecture-independent parts of
ubuntu-touch builds.
2013-05-01 12:01:21 -07:00

12 lines
423 B
Bash
Executable File

#!/bin/bash
# remove-documentation: Remove unnecessary documentation to reduce disk usage
#
# Author: Alex Chiang <achiang@canonical.com>
# Date : November 9, 2010
echo "Removing documentation..."
find /usr/share/doc -depth -type f ! -name copyright|xargs rm || true
find /usr/share/doc -empty|xargs rmdir || true
rm -rf /usr/share/man /usr/share/groff /usr/share/info /usr/share/lintian /usr/share/linda /var/cache/man