blob: f63e930fe9d5cb57a17dfb2b0b0695e21c80f256 [file] [log] [blame]
#!/bin/bash
EXEC_BASEDIR=$(dirname $(readlink -f $0))
Usage() {
echo "Usage: $0 img_file img_file_with_header"
}
main() {
if [ "$#" != "2" ]; then
Usage
return
fi
if [ ! -f $1 ]; then
echo "Error: Image file does not exist!!!"
return
fi
${EXEC_BASEDIR}/bb1_extract_meta.sh $1 | ${EXEC_BASEDIR}/sbh_gen.sh > $2
cat $1 >> $2
}
main $@