Subversion Repositories Projects

Rev

Rev 1593 | Rev 1771 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1593 Rev 1706
Line 17... Line 17...
17
::  *   along with this program; if not, write to the                          *
17
::  *   along with this program; if not, write to the                          *
18
::  *   Free Software Foundation, Inc.,                                        *
18
::  *   Free Software Foundation, Inc.,                                        *
19
::  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
19
::  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
20
::  ****************************************************************************/
20
::  ****************************************************************************/
21
 
21
 
-
 
22
set OSDBUILDDATE=%DATE:~-4,4%%DATE:~-7,2%%DATE:~0,2%-%TIME:~0,2%%TIME:~3,2%
22
set DATE=20120329-1324
23
::set OSDBUILDDATE=20120723-1900
-
 
24
echo "Building: %OSDBUILDDATE%"
23
 
25
 
24
:: date /T
26
:: date /T
25
 
27
 
26
:: clean up first
28
:: clean up first
27
del *.hex
29
del *.hex
28
 
30
 
29
:: build pal hex
31
:: build pal hex
30
set CFLAGS=-DNTSC=0 -DBUILDDATE=\"%DATE%\"
32
set CFLAGS=-DNTSC=0 -DBUILDOSDBUILDDATE=\"%OSDBUILDDATE%\"
31
make clean
33
make clean
32
make
34
make
33
move C-OSD.hex C-OSD-%DATE%-pal.hex
35
move C-OSD.hex C-OSD-%OSDBUILDDATE%-pal.hex
34
 
36
 
35
 
37
 
36
:: build ntsc hex
38
:: build ntsc hex
37
set CFLAGS=-DNTSC=1 -DBUILDDATE=\"%DATE%\"
39
set CFLAGS=-DNTSC=1 -DBUILDOSDBUILDDATE=\"%OSDBUILDDATE%\"
38
make clean
40
make clean
39
make
41
make
40
move C-OSD.hex C-OSD-%DATE%-ntsc.hex
42
move C-OSD.hex C-OSD-%OSDBUILDDATE%-ntsc.hex
41
 
43
 
42
:: build pal hex FCONLY
44
:: build pal hex FCONLY
43
set CFLAGS=-DNTSC=0 -DFCONLY=1 -DBUILDDATE=\"%DATE%\"
45
set CFLAGS=-DNTSC=0 -DFCONLY=1 -DBUILDOSDBUILDDATE=\"%OSDBUILDDATE%\"
44
make clean
46
make clean
45
make
47
make
46
move C-OSD.hex C-OSD-%DATE%-pal-fconly.hex
48
move C-OSD.hex C-OSD-%OSDBUILDDATE%-pal-fconly.hex
47
 
49
 
48
:: build ntsc hex FCONLY
50
:: build ntsc hex FCONLY
49
set CFLAGS=-DNTSC=1 -DFCONLY=1 -DBUILDDATE=\"%DATE%\"
51
set CFLAGS=-DNTSC=1 -DFCONLY=1 -DBUILDOSDBUILDDATE=\"%OSDBUILDDATE%\"
50
make clean
52
make clean
51
make
53
make
52
move C-OSD.hex C-OSD-%DATE%-ntsc-fconly.hex
54
move C-OSD.hex C-OSD-%OSDBUILDDATE%-ntsc-fconly.hex
53
 
55
 
54
 
56
 
55
:: build character files
57
:: build character files
56
:: PAL
58
:: PAL
57
set CFLAGS=-DNTSC=0 -DWRITECHARS=1 -DBUILDDATE=\"%DATE%\"
59
set CFLAGS=-DNTSC=0 -DWRITECHARS=1 -DBUILDOSDBUILDDATE=\"%OSDBUILDDATE%\"
58
make clean
60
make clean
59
make
61
make
60
move C-OSD.hex C-OSD-characters-pal.hex
62
move C-OSD.hex C-OSD-characters-pal.hex
61
 
63
 
62
:: and NTSC as well
64
:: and NTSC as well
63
set CFLAGS=-DNTSC=1 -DWRITECHARS=1 -DBUILDDATE=\"%DATE%\"
65
set CFLAGS=-DNTSC=1 -DWRITECHARS=1 -DBUILDOSDBUILDDATE=\"%OSDBUILDDATE%\"
64
make clean
66
make clean
65
make
67
make
66
move C-OSD.hex C-OSD-characters-ntsc.hex
68
move C-OSD.hex C-OSD-characters-ntsc.hex
67
 
69
 
68
:: clean up
70
:: clean up
Line 71... Line 73...
71
:: show stats  f.e. http://etree.org/cgi-bin/counter.cgi/software/md5sum.exe
73
:: show stats  f.e. http://etree.org/cgi-bin/counter.cgi/software/md5sum.exe
72
md5sum *.hex
74
md5sum *.hex
73
::dir /A *.hex
75
::dir /A *.hex
74
 
76
 
75
:: pack all stuff
77
:: pack all stuff
76
mkdir C-OSD-%DATE%
78
mkdir C-OSD-%OSDBUILDDATE%
77
move *.hex C-OSD-%DATE%
79
move *.hex C-OSD-%OSDBUILDDATE%
78
copy ..\CHANGE.LOG C-OSD-%DATE%
80
copy ..\CHANGE.LOG C-OSD-%OSDBUILDDATE%
79
copy ..\LICENSE.TXT C-OSD-%DATE%
81
copy ..\LICENSE.TXT C-OSD-%OSDBUILDDATE%
80
copy ..\README.TXT C-OSD-%DATE%
82
copy ..\README.TXT C-OSD-%OSDBUILDDATE%
81
:: 7zip command line version from http://www.7-zip.org
83
:: 7zip command line version from http://www.7-zip.org
82
7za a -tzip  C-OSD-%DATE%.zip C-OSD-%DATE%
84
7za a -tzip  C-OSD-%OSDBUILDDATE%.zip C-OSD-%OSDBUILDDATE%
83
 
85
 
84
rmdir /S /Q C-OSD-%DATE%
86
rmdir /S /Q C-OSD-%OSDBUILDDATE%
85
 
87
 
86
dir /A C-OSD-%DATE%.zip
88
dir /A C-OSD-%OSDBUILDDATE%.zip
87
 
89
 
88
::echo "building based on revision $REVISION is now DONE..."
90
::echo "building based on revision $REVISION is now DONE..."
89
 
91