mirror of
https://github.com/mi57730/a2d.git
synced 2024-07-15 14:28:53 +00:00
29 lines
555 B
Bash
Executable File
29 lines
555 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
#make clean
|
|
make all
|
|
|
|
function verify {
|
|
diff "$1.bin" "$1.F1" \
|
|
&& echo "$1: files match" \
|
|
|| (
|
|
tput setaf 1 # red
|
|
tput blink
|
|
echo "************************************"
|
|
echo "*"
|
|
echo "* Bad: $1"
|
|
echo "*"
|
|
echo "************************************"
|
|
tput sgr0 # res
|
|
)
|
|
}
|
|
|
|
# Verify original and output match
|
|
verify "calculator"
|
|
verify "show_text_file"
|
|
|
|
cat show_image_file.F1 > mount/SHOW.IMAGE.FILE.\$F1 \
|
|
&& echo "Updated mounted file"
|