Subversion Repositories Projects

Rev

Rev 2006 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

@echo off
copy makefile makefile.bak
copy main.h main.h.bak
sed s/"^MCU = atmega1284p"/"#MCU = atmega1284p"/g makefile | sed s/"^MCU = atmega644p"/"#MCU = atmega644p"/g > makefile.orig
copy main.h main.h.orig
md Hex-Files

REM DX7-644

sed s/"#MCU = atmega644p"/"MCU = atmega644p"/g makefile.orig > makefile
sed s/"\/\/#define RECEIVER_SPEKTRUM_DX7EXP"/"#define RECEIVER_SPEKTRUM_DX7EXP"/g main.h.orig > main.h
make clean
make
ren *_SVN.hex *_DX7Patched.hex
move *.hex Hex-Files

REM DX8-644

sed s/"#MCU = atmega644p"/"MCU = atmega644p"/g makefile.orig > makefile
sed s/"\/\/#define RECEIVER_SPEKTRUM_DX8EXP"/"#define RECEIVER_SPEKTRUM_DX8EXP"/g main.h.orig > main.h
make clean
make
ren *_SVN.hex *_DX8Patched.hex
move *.hex Hex-Files

REM DX7-1284

sed s/"#MCU = atmega1284p"/"MCU = atmega1284p"/g makefile.orig > makefile
sed s/"\/\/#define RECEIVER_SPEKTRUM_DX7EXP"/"#define RECEIVER_SPEKTRUM_DX7EXP"/g main.h.orig > main.h
make clean
make
ren *_SVN.hex *_DX7Patched.hex
move *.hex Hex-Files

REM DX8-1284

sed s/"#MCU = atmega1284p"/"MCU = atmega1284p"/g makefile.orig > makefile
sed s/"\/\/#define RECEIVER_SPEKTRUM_DX8EXP"/"#define RECEIVER_SPEKTRUM_DX8EXP"/g main.h.orig > main.h
make clean
make
ren *_SVN.hex *_DX8Patched.hex
move *.hex Hex-Files

make clean
del makefile.orig
del main.h.orig
del makefile
del main.h
ren makefile.bak makefile
ren main.h.bak main.h