Rev 457 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
456 | cascade | 1 | #!/bin/sh |
2 | #/**************************************************************************** |
||
3 | # * Copyright (C) 2009 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 | DATE=`date +%Y%m%d-%H%M` |
||
23 | |||
24 | # build pal hex |
||
25 | export CFLAGS="-DBUILDDATE=${DATE} " |
||
26 | make clean |
||
27 | make |
||
28 | mv C-OSD.hex C-OSD-${DATE}-pal.hex |
||
29 | |||
30 | #build pal hex FCONLY |
||
31 | export CFLAGS="-DFCONLY=1 -DBUILDDATE=${DATE} " |
||
32 | make clean |
||
33 | make |
||
34 | mv C-OSD.hex C-OSD-${DATE}-pal-fconly.hex |
||
35 | |||
36 | # build ntsc hex |
||
37 | export CFLAGS="-DNTSC=1 -DBUILDDATE=${DATE} " |
||
38 | make clean |
||
39 | make |
||
40 | mv C-OSD.hex C-OSD-${DATE}-ntsc.hex |
||
41 | |||
42 | # build ntsc hex FCONLY |
||
43 | export CFLAGS="-DNTSC=1 -DFCONLY=1 -DBUILDDATE=${DATE} " |
||
44 | make clean |
||
45 | make |
||
46 | mv C-OSD.hex C-OSD-${DATE}-ntsc-fconly.hex |
||
47 | |||
48 | # buil all character files |
||
49 | CHARFILES="112 128 136 144 152 160 168 176 184 192 200 208 216 224 232" |
||
50 | for i in $CHARFILES; do |
||
51 | make clean |
||
52 | export CFLAGS="-DWRITECHARS=${i} -DBUILDDATE=${DATE} " |
||
53 | make |
||
54 | TILL=`echo $i + 7 | bc` |
||
55 | mv C-OSD.hex C-OSD-characters-${i}-${TILL}.hex |
||
56 | done |
||
57 | |||
58 | md5sum *.hex |
||
59 | |||
60 | # pack all stuff |
||
61 | mkdir C-OSD-${DATE} |
||
62 | mv *.hex C-OSD-${DATE} |
||
63 | cp ../CHANGE.LOG C-OSD-${DATE} |
||
64 | cp ../LICENSE.TXT C-OSD-${DATE} |
||
65 | cp ../README.TXT C-OSD-${DATE} |
||
66 | zip -r -9 -q C-OSD-${DATE}.zip C-OSD-${DATE} |
||
67 | #rm -rf C-OSD-${DATE} |
||
68 | |||
69 | du -h C-OSD-${DATE}.zip |
||
70 | echo "DONE..." |