Subversion Repositories Projects

Rev

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

Rev 501 Rev 514
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#/****************************************************************************
2
#/****************************************************************************
3
# *   Copyright (C) 2009 by Claas Anders "CaScAdE" Rathje                    *
3
# *   Copyright (C) 2009 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
# ****************************************************************************/
Line 21... Line 21...
21
 
21
 
22
DATE=`date +%Y%m%d-%H%M`
22
DATE=`date +%Y%m%d-%H%M`
23
DATE="20090604-1350"
23
#DATE="20090604-1350"
Line 24... Line 24...
24
REVISION=`svn info .. | awk '$1 == "Revision:" {print $2}'`
24
REVISION=`svn info .. | awk '$1 == "Revision:" {print $2}'`
25
 
25
 
26
#NCMODES=`find ../ -name osd_ncmode_\*.c| sed 's/..\///g'`
26
#NCMODES=`find ../ -name osd_ncmode_\*.c| sed 's/..\///g'`
27
#FCMODES=`find ../ -name osd_fcmode_\*.c| sed 's/..\///g'`
27
#FCMODES=`find ../ -name osd_fcmode_\*.c| sed 's/..\///g'`
28
#
28
#
29
# build all the NCMODE files
29
# build all the NCMODE files
30
#for CURRMODE in $NCMODES; do
30
#for CURRMODE in $NCMODES; do
31
#       CURRSHORTMODE=`echo $CURRMODE | sed -e 's/osd_ncmode_//g' -e 's/.c//g'`
31
#       CURRSHORTMODE=`echo $CURRMODE | sed -e 's/osd_ncmode_//g' -e 's/.c//g'`
32
#       
32
#
33
#       # build pal hex
33
#       # build pal hex
34
#       export CFLAGS="-DBUILDDATE=\\\"${DATE}\\\" -DOSD_NCMODE=\\\"${CURRMODE}\\\""
34
#       export CFLAGS="-DBUILDDATE=\\\"${DATE}\\\" -DOSD_NCMODE=\\\"${CURRMODE}\\\""
35
#       make clean
35
#       make clean
Line 83... Line 83...
83
make clean
83
make clean
84
make
84
make
85
mv C-OSD.hex C-OSD-${DATE}-ntsc-fconly.hex
85
mv C-OSD.hex C-OSD-${DATE}-ntsc-fconly.hex
Line 86... Line 86...
86
 
86
 
87
 
-
 
88
# buil all character files
-
 
89
CHARFILES="112 128 136 144 152 160 168 176 184 192 200 208 216 224 232"
-
 
90
for i in $CHARFILES; do
-
 
91
        TILL=`echo $i + 7 | bc`
87
 
92
 
88
# buil character files
93
        # PAL
89
# PAL
94
        make clean
90
make clean
95
        export CFLAGS="-DWRITECHARS=${i} -DBUILDDATE=\\\"${DATE}\\\" "
91
export CFLAGS="-DWRITECHARS=1 -DBUILDDATE=\\\"${DATE}\\\" "
96
        make
92
make
97
        mv C-OSD.hex C-OSD-characters-${i}-${TILL}-pal.hex
93
mv C-OSD.hex C-OSD-characters-pal.hex
98
 
94
 
99
        # and NTSC ones as well
95
# and NTSC as well
100
        make clean
96
make clean
101
        export CFLAGS="-DNTSC=1 -DWRITECHARS=${i} -DBUILDDATE=\\\"${DATE}\\\" "
97
export CFLAGS="-DNTSC=1 -DWRITECHARS=1 -DBUILDDATE=\\\"${DATE}\\\" "
-
 
98
make
102
        make
99
mv C-OSD.hex C-OSD-characters-ntsc.hex
Line 103... Line 100...
103
        mv C-OSD.hex C-OSD-characters-${i}-${TILL}-ntsc.hex
100
 
104
done
101
 
Line 105... Line 102...
105
 
102