#!/bin/bash
#
# $Id: cleanimg,v 1.2 2006/02/21 01:42:46 jlivesey Exp $
#
# This cleans up after makeimg and removes all the intermediate
# files.
#
if [ $# -lt 1 ]; then
	echo cleanimg basename
	exit 1
fi
BASENAME=$1

FILES="bin2hex.log crack_flash.log hex2bin.log ${BASENAME}.bin ${BASENAME}.bin.encrypted ${BASENAME}.bin.decrypted ${BASENAME}.flash.bin ${BASENAME}.flash.bin.big ${BASENAME}.flash.bin.hex ${BASENAME}.hex ${BASENAME}.list small2big1.log small2big2.log toflash.log"

echo ${FILES}
ls -l ${FILES}
rm ${FILES}

# eof
