Merge branch 'bugfix/git-https' into experimental
[tails-test.git] / config / chroot_local-hooks / 98-remove_unwanted_files
blobfc33142be9f5a75ed0fb817227a29ed404f1784d
1 #!/bin/sh
3 set -e
5 echo "Removing unwanted files"
7 rm /usr/share/icons/gnome/icon-theme.cache
9 rm -r \
10 /usr/share/inkscape/examples \
11 /usr/share/inkscape/tutorials
13 rm -r /usr/share/amnesia/packages
15 # Ease transition to "stop shipping bugs/ and todo/ in ISO images"
16 # This is for people who have a too-clever caching build setup that
17 # goes on shipping files foverer as long as it has built them once.
18 rm -rf /usr/share/doc/tails/website/bugs/ \
19 /usr/share/doc/tails/website/todo/ \
20 /usr/share/doc/tails/website/bugs.html \
21 /usr/share/doc/tails/website/todo.html \
22 /usr/share/doc/tails/website/wishlist.html \
23 /usr/share/doc/tails/website/contribute/roadmap.html
25 find /usr/share/doc -type f -name changelog.gz -exec rm "{}" \;
26 find /usr/share/doc -type f -name changelog.Debian.gz -exec rm "{}" \;
27 find /usr/share/doc -type f -name NEWS.Debian.gz -exec rm "{}" \;
29 rm -rf /tmp/*
30 find /usr -name "*.pyc" -print0 | xargs -0r rm -f
32 # truncate logs
33 for file in $(find /var/log/ -type f); do
34 : > "${file}"
35 done