blob: dabaefb44673f0b4683ec2b726cd5da6bb7423c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
TXT=solutions/$1target.l$2.txt
BIN=target17/$1target.l$2.bin
printf "building binary w/ hex2raw...\n"
cat $TXT
printf "\n"
./target17/hex2raw < $TXT > $BIN
read -p "execute target? (y/n) " -n 1 -r
if [[ $REPLY =~ y$ ]]; then
printf "\n\n"
./target17/$1target < $BIN
else
printf "\n"
fi
|