livecd-rootfs/live-build/ubuntu-touch/hooks/99-remove-documentation.chroot
Colin Watson f00349b766 Import patches-unapplied version 2.125 to ubuntu/saucy-proposed
Imported using git-ubuntu import.

Changelog parent: 65b7f7a10a9bd05c60185f5c282af1a4c4efff57

New changelog entries:
  * live-build/auto/config: Add basic ubuntu-touch enablement (based on
    patch from Oliver Grawert, for which thanks).
  * 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 19:33:32 +00: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