c2d/makeheader

22 lines
280 B
Plaintext
Raw Normal View History

2017-04-09 03:45:39 +00:00
#!/bin/bash
cd asm
make clean
PATH=../cc65-2.13.3/bin:$PATH make
2017-04-09 03:45:39 +00:00
(
echo "/*"
expand loader.s
echo "*/"
/usr/bin/xxd -i loader | sed 's/loader/loadercode/'
echo "/*"
expand bar.s
echo "*/"
/usr/bin/xxd -i bar | sed 's/bar/barcode/'
2017-04-09 03:45:39 +00:00
) > ../c2d.h.1
cd ..
cat c2d.h.[01] > c2d.h