Subversion Repositories Projects

Rev

Rev 787 | Rev 809 | Go to most recent revision | Details | Compare with Previous | 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
 
800 - 22
set DATE=20100822-2300
783 - 23
 
735 cascade 24
:: date /T
25
 
26
:: clean up first
27
del *.hex
28
 
29
:: build pal hex
30
set CFLAGS=-DNTSC=0 -DBUILDDATE=\"%DATE%\"
31
make clean
32
make
33
move C-OSD.hex C-OSD-%DATE%-pal.hex
34
 
35
 
36
:: build ntsc hex
37
set CFLAGS=-DNTSC=1 -DBUILDDATE=\"%DATE%\"
38
make clean
39
make
40
move C-OSD.hex C-OSD-%DATE%-ntsc.hex
41
 
42
:: build pal hex FCONLY
43
set CFLAGS=-DNTSC=0 -DFCONLY=1 -DBUILDDATE=\"%DATE%\"
44
make clean
45
make
46
move C-OSD.hex C-OSD-%DATE%-pal-fconly.hex
47
 
48
:: build ntsc hex FCONLY
49
set CFLAGS=-DNTSC=1 -DFCONLY=1 -DBUILDDATE=\"%DATE%\"
50
make clean
51
make
52
move C-OSD.hex C-OSD-%DATE%-ntsc-fconly.hex
53
 
54
 
55
:: build character files
56
:: PAL
57
set CFLAGS=-DNTSC=0 -DWRITECHARS=1 -DBUILDDATE=\"%DATE%\"
58
make clean
59
make
60
move C-OSD.hex C-OSD-characters-pal.hex
61
 
62
:: and NTSC as well
63
set CFLAGS=-DNTSC=1 -DWRITECHARS=1 -DBUILDDATE=\"%DATE%\"
64
make clean
65
make
66
move C-OSD.hex C-OSD-characters-ntsc.hex
67
 
68
:: clean up
69
make clean
70
 
71
:: show stats  f.e. http://etree.org/cgi-bin/counter.cgi/software/md5sum.exe
72
md5sum *.hex
73
::dir /A *.hex
74
 
75
:: pack all stuff
76
mkdir C-OSD-%DATE%
77
move *.hex C-OSD-%DATE%
78
copy ..\CHANGE.LOG C-OSD-%DATE%
79
copy ..\LICENSE.TXT C-OSD-%DATE%
80
copy ..\README.TXT C-OSD-%DATE%
81
:: 7zip command line version from http://www.7-zip.org
82
7za a -tzip  C-OSD-%DATE%.zip C-OSD-%DATE%
83
 
84
rmdir /S /Q C-OSD-%DATE%
85
 
86
dir /A C-OSD-%DATE%.zip
87
 
88
::echo "building based on revision $REVISION is now DONE..."
89