Subversion Repositories Projects

Rev

Rev 738 | Go to most recent revision | Details | Last modification | View Log | RSS feed

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