Subversion Repositories Projects

Rev

Rev 2041 | Rev 2075 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
809 - 1
@echo off
735 cascade 2
:: /****************************************************************************
2039 - 3
::  *   Copyright (C) 2010-2014 by Claas Anders "CaScAdE" Rathje               *
735 cascade 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
 
1706 - 22
set OSDBUILDDATE=%DATE:~-4,4%%DATE:~-7,2%%DATE:~0,2%-%TIME:~0,2%%TIME:~3,2%
2043 - 23
set OSDBUILDDATE=20140415-2130
1706 - 24
echo "Building: %OSDBUILDDATE%"
783 - 25
 
735 cascade 26
:: date /T
27
 
28
:: clean up first
29
del *.hex
30
 
31
:: build pal hex
1706 - 32
set CFLAGS=-DNTSC=0 -DBUILDOSDBUILDDATE=\"%OSDBUILDDATE%\"
735 cascade 33
make clean
34
make
1706 - 35
move C-OSD.hex C-OSD-%OSDBUILDDATE%-pal.hex
735 cascade 36
 
37
 
38
:: build ntsc hex
1706 - 39
set CFLAGS=-DNTSC=1 -DBUILDOSDBUILDDATE=\"%OSDBUILDDATE%\"
735 cascade 40
make clean
41
make
1706 - 42
move C-OSD.hex C-OSD-%OSDBUILDDATE%-ntsc.hex
735 cascade 43
 
44
:: build pal hex FCONLY
1706 - 45
set CFLAGS=-DNTSC=0 -DFCONLY=1 -DBUILDOSDBUILDDATE=\"%OSDBUILDDATE%\"
735 cascade 46
make clean
47
make
1706 - 48
move C-OSD.hex C-OSD-%OSDBUILDDATE%-pal-fconly.hex
735 cascade 49
 
50
:: build ntsc hex FCONLY
1706 - 51
set CFLAGS=-DNTSC=1 -DFCONLY=1 -DBUILDOSDBUILDDATE=\"%OSDBUILDDATE%\"
735 cascade 52
make clean
53
make
1706 - 54
move C-OSD.hex C-OSD-%OSDBUILDDATE%-ntsc-fconly.hex
735 cascade 55
 
56
 
57
:: build character files
58
:: PAL
1706 - 59
set CFLAGS=-DNTSC=0 -DWRITECHARS=1 -DBUILDOSDBUILDDATE=\"%OSDBUILDDATE%\"
735 cascade 60
make clean
61
make
62
move C-OSD.hex C-OSD-characters-pal.hex
63
 
64
:: and NTSC as well
1706 - 65
set CFLAGS=-DNTSC=1 -DWRITECHARS=1 -DBUILDOSDBUILDDATE=\"%OSDBUILDDATE%\"
735 cascade 66
make clean
67
make
68
move C-OSD.hex C-OSD-characters-ntsc.hex
69
 
70
:: clean up
71
make clean
72
 
73
:: show stats  f.e. http://etree.org/cgi-bin/counter.cgi/software/md5sum.exe
74
md5sum *.hex
75
::dir /A *.hex
76
 
77
:: pack all stuff
1706 - 78
mkdir C-OSD-%OSDBUILDDATE%
79
move *.hex C-OSD-%OSDBUILDDATE%
80
copy ..\CHANGE.LOG C-OSD-%OSDBUILDDATE%
81
copy ..\LICENSE.TXT C-OSD-%OSDBUILDDATE%
82
copy ..\README.TXT C-OSD-%OSDBUILDDATE%
2040 - 83
copy flash-usbasp.bat C-OSD-%OSDBUILDDATE%
735 cascade 84
:: 7zip command line version from http://www.7-zip.org
1706 - 85
7za a -tzip  C-OSD-%OSDBUILDDATE%.zip C-OSD-%OSDBUILDDATE%
735 cascade 86
 
1706 - 87
rmdir /S /Q C-OSD-%OSDBUILDDATE%
735 cascade 88
 
1706 - 89
dir /A C-OSD-%OSDBUILDDATE%.zip
735 cascade 90
 
91
::echo "building based on revision $REVISION is now DONE..."
92