blob: fb261ddca9ad202d2ddbc16c80b303e48a7488dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
rm -f build.log
# Remove generated files
rm -f config/binary config/bootstrap config/chroot config/common config/source
# remove kanotix-scripts
grep -oe '^[^ #]*' scripts.urls | grep -oe '[^/]*$' | xargs -i rm -f config/chroot_local-includes/usr/local/bin/{}
# Remove empty directories in config tree
if ls config/*/ > /dev/null 2>&1
then
rmdir --ignore-fail-on-non-empty config/*/
fi
if [ -d config ]
then
rmdir --ignore-fail-on-non-empty config
fi
# umount tmpfs
if [ -e tmpfs ]; then
case "$1" in
--tmpfs|--all)
[ "$(stat --printf "%d\n" . tmpfs | uniq -u)" ] && umount tmpfs;;
esac
[ "$1" = "--tmpfs" ] && exit 1
fi
exit 0
|