Subversion Repositories Projects

Rev

Rev 772 | Rev 787 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 772 Rev 783
1
@echo off
1
@echo off
2
:: /****************************************************************************
2
:: /****************************************************************************
3
::  *   Copyright (C) 2010 by Claas Anders "CaScAdE" Rathje                    *
3
::  *   Copyright (C) 2010 by Claas Anders "CaScAdE" Rathje                    *
4
::  *   admiralcascade@gmail.com                                               *
4
::  *   admiralcascade@gmail.com                                               *
5
::  *   Project-URL: http://www.mylifesucks.de/oss/c-osd/                      *
5
::  *   Project-URL: http://www.mylifesucks.de/oss/c-osd/                      *
6
::  *                                                                          *
6
::  *                                                                          *
7
::  *   This program is free software; you can redistribute it and/or modify   *
7
::  *   This program is free software; you can redistribute it and/or modify   *
8
::  *   it under the terms of the GNU General Public License as published by   *
8
::  *   it under the terms of the GNU General Public License as published by   *
9
::  *   the Free Software Foundation; either version 2 of the License.         *
9
::  *   the Free Software Foundation; either version 2 of the License.         *
10
::  *                                                                          *
10
::  *                                                                          *
11
::  *   This program is distributed in the hope that it will be useful,        *
11
::  *   This program is distributed in the hope that it will be useful,        *
12
::  *   but WITHOUT ANY WARRANTY; without even the implied warranty of         *
12
::  *   but WITHOUT ANY WARRANTY; without even the implied warranty of         *
13
::  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
13
::  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
14
::  *   GNU General Public License for more details.                           *
14
::  *   GNU General Public License for more details.                           *
15
::  *                                                                          *
15
::  *                                                                          *
16
::  *   You should have received a copy of the GNU General Public License      *
16
::  *   You should have received a copy of the GNU General Public License      *
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 DATE=20100701-1745
22
set DATE=20100730-1345
-
 
23
 
23
:: date /T
24
:: date /T
24
 
25
 
25
:: clean up first
26
:: clean up first
26
del *.hex
27
del *.hex
27
 
28
 
28
:: build pal hex
29
:: build pal hex
29
set CFLAGS=-DNTSC=0 -DBUILDDATE=\"%DATE%\"
30
set CFLAGS=-DNTSC=0 -DBUILDDATE=\"%DATE%\"
30
make clean
31
make clean
31
make
32
make
32
move C-OSD.hex C-OSD-%DATE%-pal.hex
33
move C-OSD.hex C-OSD-%DATE%-pal.hex
33
 
34
 
34
 
35
 
35
:: build ntsc hex
36
:: build ntsc hex
36
set CFLAGS=-DNTSC=1 -DBUILDDATE=\"%DATE%\"
37
set CFLAGS=-DNTSC=1 -DBUILDDATE=\"%DATE%\"
37
make clean
38
make clean
38
make
39
make
39
move C-OSD.hex C-OSD-%DATE%-ntsc.hex
40
move C-OSD.hex C-OSD-%DATE%-ntsc.hex
40
 
41
 
41
:: build pal hex FCONLY
42
:: build pal hex FCONLY
42
set CFLAGS=-DNTSC=0 -DFCONLY=1 -DBUILDDATE=\"%DATE%\"
43
set CFLAGS=-DNTSC=0 -DFCONLY=1 -DBUILDDATE=\"%DATE%\"
43
make clean
44
make clean
44
make
45
make
45
move C-OSD.hex C-OSD-%DATE%-pal-fconly.hex
46
move C-OSD.hex C-OSD-%DATE%-pal-fconly.hex
46
 
47
 
47
:: build ntsc hex FCONLY
48
:: build ntsc hex FCONLY
48
set CFLAGS=-DNTSC=1 -DFCONLY=1 -DBUILDDATE=\"%DATE%\"
49
set CFLAGS=-DNTSC=1 -DFCONLY=1 -DBUILDDATE=\"%DATE%\"
49
make clean
50
make clean
50
make
51
make
51
move C-OSD.hex C-OSD-%DATE%-ntsc-fconly.hex
52
move C-OSD.hex C-OSD-%DATE%-ntsc-fconly.hex
52
 
53
 
53
 
54
 
54
:: build character files
55
:: build character files
55
:: PAL
56
:: PAL
56
set CFLAGS=-DNTSC=0 -DWRITECHARS=1 -DBUILDDATE=\"%DATE%\"
57
set CFLAGS=-DNTSC=0 -DWRITECHARS=1 -DBUILDDATE=\"%DATE%\"
57
make clean
58
make clean
58
make
59
make
59
move C-OSD.hex C-OSD-characters-pal.hex
60
move C-OSD.hex C-OSD-characters-pal.hex
60
 
61
 
61
:: and NTSC as well
62
:: and NTSC as well
62
set CFLAGS=-DNTSC=1 -DWRITECHARS=1 -DBUILDDATE=\"%DATE%\"
63
set CFLAGS=-DNTSC=1 -DWRITECHARS=1 -DBUILDDATE=\"%DATE%\"
63
make clean
64
make clean
64
make
65
make
65
move C-OSD.hex C-OSD-characters-ntsc.hex
66
move C-OSD.hex C-OSD-characters-ntsc.hex
66
 
67
 
67
:: clean up
68
:: clean up
68
make clean
69
make clean
69
 
70
 
70
:: show stats  f.e. http://etree.org/cgi-bin/counter.cgi/software/md5sum.exe
71
:: show stats  f.e. http://etree.org/cgi-bin/counter.cgi/software/md5sum.exe
71
md5sum *.hex
72
md5sum *.hex
72
::dir /A *.hex
73
::dir /A *.hex
73
 
74
 
74
:: pack all stuff
75
:: pack all stuff
75
mkdir C-OSD-%DATE%
76
mkdir C-OSD-%DATE%
76
move *.hex C-OSD-%DATE%
77
move *.hex C-OSD-%DATE%
77
copy ..\CHANGE.LOG C-OSD-%DATE%
78
copy ..\CHANGE.LOG C-OSD-%DATE%
78
copy ..\LICENSE.TXT C-OSD-%DATE%
79
copy ..\LICENSE.TXT C-OSD-%DATE%
79
copy ..\README.TXT C-OSD-%DATE%
80
copy ..\README.TXT C-OSD-%DATE%
80
:: 7zip command line version from http://www.7-zip.org
81
:: 7zip command line version from http://www.7-zip.org
81
7za a -tzip  C-OSD-%DATE%.zip C-OSD-%DATE%
82
7za a -tzip  C-OSD-%DATE%.zip C-OSD-%DATE%
82
 
83
 
83
rmdir /S /Q C-OSD-%DATE%
84
rmdir /S /Q C-OSD-%DATE%
84
 
85
 
85
dir /A C-OSD-%DATE%.zip
86
dir /A C-OSD-%DATE%.zip
86
 
87
 
87
::echo "building based on revision $REVISION is now DONE..."
88
::echo "building based on revision $REVISION is now DONE..."
88
 
89
 
89
 
90