#!/bin/sh

infile=$1
outfile=$2

outfile=`echo $outfile | sed -e 's/.hdr$//' -e 's/.img$//' `

echo $infile
echo $outfile
echo "makeheader -o ${outfile}.hdr --type char 1 1 1 `wc ${infile}|awk '{print $2}' ` "
makeheader -o ${outfile}.hdr --type char 1 1 1 `wc ${infile}|awk '{print $2}' `
echo txt2bin -i $infile -o ${outfile}.img --type char
txt2bin -i $infile -o ${outfile}.img --type char


