#!/bin/sh

source master_vars.sh

for ARCH in $ARCHLIST; do
	[ "x$ARCH" = "x" ] && continue
	apt-get remove -y --force-yes `dpkg -l | grep $ARCH | cut -d' ' -f3`
done
apt-get remove -y --force-yes `dpkg -l | grep gnueabi | cut -d' ' -f3`
rm -rf  powerpc arm armel mips mipsel i386 sparc s390 amd64 m68k hppa alpha ia64 logs log.html dpkg.log
