Subversion Repositories Projects

Rev

Rev 2007 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2007 Rev 2008
Line 1... Line 1...
1
@echo off
1
@echo off
-
 
2
 
-
 
3
REM Backup
-
 
4
make clean
2
copy makefile makefile.bak
5
copy makefile makefile.bak
3
copy main.h main.h.bak
6
copy main.h main.h.bak
4
sed s/"^MCU = atmega1284p"/"#MCU = atmega1284p"/g makefile | sed s/"^MCU = atmega644p"/"#MCU = atmega644p"/g > makefile.orig
-
 
5
copy main.h main.h.orig
-
 
6
md Hex-Files
7
md Hex-Files
Line 7... Line 8...
7
 
8
 
8
REM DX7-644
9
REM DX7-644
9
sed s/"#MCU = atmega644p"/"MCU = atmega644p"/g makefile.orig > makefile
10
sed s/"^MCU = atmega1284p"/"#MCU = atmega1284p"/g makefile.bak | sed s/"^MCU = atmega644p"/"#MCU = atmega644p"/g | sed s/"#MCU = atmega644p"/"MCU = atmega644p"/g > makefile
10
sed s/"\/\/#define RECEIVER_SPEKTRUM_DX7EXP"/"#define RECEIVER_SPEKTRUM_DX7EXP"/g main.h.orig > main.h
-
 
11
make clean
11
sed s/"\/\/#define RECEIVER_SPEKTRUM_DX7EXP"/"#define RECEIVER_SPEKTRUM_DX7EXP"/g main.h.bak > main.h
12
make
12
make
13
ren *_SVN.hex *_DX7Patched.hex
13
ren *_SVN.hex *_DX7Patched.hex
-
 
14
move *.hex Hex-Files
Line 14... Line 15...
14
move *.hex Hex-Files
15
make clean
15
 
16
 
16
REM DX8-644
17
REM DX8-644
17
sed s/"#MCU = atmega644p"/"MCU = atmega644p"/g makefile.orig > makefile
-
 
18
sed s/"\/\/#define RECEIVER_SPEKTRUM_DX8EXP"/"#define RECEIVER_SPEKTRUM_DX8EXP"/g main.h.orig > main.h
18
sed s/"^MCU = atmega1284p"/"#MCU = atmega1284p"/g makefile.bak | sed s/"^MCU = atmega644p"/"#MCU = atmega644p"/g | sed s/"#MCU = atmega644p"/"MCU = atmega644p"/g > makefile
19
make clean
19
sed s/"\/\/#define RECEIVER_SPEKTRUM_DX8EXP"/"#define RECEIVER_SPEKTRUM_DX8EXP"/g main.h.bak > main.h
20
make
20
make
-
 
21
ren *_SVN.hex *_DX8Patched.hex
Line 21... Line 22...
21
ren *_SVN.hex *_DX8Patched.hex
22
move *.hex Hex-Files
22
move *.hex Hex-Files
23
make clean
23
 
24
 
24
REM DX7-1284
-
 
25
sed s/"#MCU = atmega1284p"/"MCU = atmega1284p"/g makefile.orig > makefile
25
REM DX7-1284
26
sed s/"\/\/#define RECEIVER_SPEKTRUM_DX7EXP"/"#define RECEIVER_SPEKTRUM_DX7EXP"/g main.h.orig > main.h
26
sed s/"^MCU = atmega1284p"/"#MCU = atmega1284p"/g makefile.bak | sed s/"^MCU = atmega644p"/"#MCU = atmega644p"/g | sed s/"#MCU = atmega1284p"/"MCU = atmega1284p"/g > makefile
27
make clean
27
sed s/"\/\/#define RECEIVER_SPEKTRUM_DX7EXP"/"#define RECEIVER_SPEKTRUM_DX7EXP"/g main.h.bak > main.h
-
 
28
make
Line 28... Line 29...
28
make
29
ren *_SVN.hex *_DX7Patched.hex
29
ren *_SVN.hex *_DX7Patched.hex
30
move *.hex Hex-Files
30
move *.hex Hex-Files
31
make clean
31
 
-
 
32
REM DX8-1284
32
 
33
sed s/"#MCU = atmega1284p"/"MCU = atmega1284p"/g makefile.orig > makefile
33
REM DX8-1284
34
sed s/"\/\/#define RECEIVER_SPEKTRUM_DX8EXP"/"#define RECEIVER_SPEKTRUM_DX8EXP"/g main.h.orig > main.h
34
sed s/"^MCU = atmega1284p"/"#MCU = atmega1284p"/g makefile.bak | sed s/"^MCU = atmega644p"/"#MCU = atmega644p"/g | sed s/"#MCU = atmega1284p"/"MCU = atmega1284p"/g > makefile
35
make clean
-
 
36
make
35
sed s/"\/\/#define RECEIVER_SPEKTRUM_DX8EXP"/"#define RECEIVER_SPEKTRUM_DX8EXP"/g main.h.bak > main.h
-
 
36
make
37
ren *_SVN.hex *_DX8Patched.hex
37
ren *_SVN.hex *_DX8Patched.hex
38
move *.hex Hex-Files
-
 
39
 
38
move *.hex Hex-Files
40
make clean
-
 
41
del makefile.orig
39
make clean
-
 
40
 
42
del main.h.orig
41
REM Cleanup