summaryrefslogtreecommitdiffstats
path: root/scripts/clean
blob: 78885b6a9ddff39b458c5466af08b5385d309e6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

for dir in chroot/{dev/pts,proc,sys} ; do
   if mountpoint -q "$dir" ; then
      umount "$dir"
   fi
done

lh clean noautoconfig ${@}

# rm -f build-*.log

# Remove generated files
rm -f config/binary config/bootstrap config/chroot config/common config/source

# Remove empty directories in config tree
if ls config/*/ > /dev/null 2>&1 ; then
	rmdir --ignore-fail-on-non-empty config/*/
fi

# Remove unpacked /home/amnesia
rm -rf config/chroot_local-includes/home/