Update tails-bugs.key with new ID
[tails-test.git] / auto / clean
blob091618392f24f3a1aacce2839bbf6f7e5029089c
1 #!/bin/sh
3 for dir in chroot/{dev/pts,proc,sys,var/lib/dpkg} ; do
4 if mountpoint -q "$dir" ; then
5 umount "$dir"
6 fi
7 done
9 lb clean noauto ${@}
11 # rm -f build-*.log
13 # Remove generated files
14 rm -f config/binary config/bootstrap config/chroot config/common config/source
16 # Remove empty directories in config tree
17 if ls config/*/ > /dev/null 2>&1 ; then
18 rmdir --ignore-fail-on-non-empty config/*/
21 # files copied or created in the config stage
22 rm -f config/chroot_local-includes/etc/amnesia/environment
23 rm -f config/chroot_local-includes/etc/amnesia/version
24 rm -f config/chroot_local-includes/usr/share/doc/amnesia/Changelog
25 for list in config/chroot_local-packageslists/*.list ; do
26 if [ "$list" != 'config/chroot_local-packageslists/tails-common.list' ]; then
27 rm -f "$list"
29 done
31 # files copied or created in the build stage
32 rm -f config/chroot_local-includes/usr/share/amnesia/build/variables
34 # static wiki
35 rm -rf config/chroot_local-includes/usr/share/doc/tails/website wiki/src/.ikiwiki
36 find wiki/src -name *.pot -exec rm {} \;