Rev 2217 | Rev 2598 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
456 | cascade | 1 | #!/bin/sh |
514 | cascade | 2 | #/**************************************************************************** |
2225 | - | 3 | # * Copyright (C) 2009-2016 by Claas Anders "CaScAdE" Rathje * |
514 | 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. * |
||
456 | cascade | 20 | # ****************************************************************************/ |
21 | |||
22 | DATE=`date +%Y%m%d-%H%M` |
||
2217 | - | 23 | #DATE="20151026-0630" |
495 | cascade | 24 | REVISION=`svn info .. | awk '$1 == "Revision:" {print $2}'` |
456 | cascade | 25 | |
498 | cascade | 26 | # build pal hex |
27 | export CFLAGS="-DBUILDDATE=\\\"${DATE}\\\" " |
||
28 | make clean |
||
29 | make |
||
30 | mv C-OSD.hex C-OSD-${DATE}-pal.hex |
||
456 | cascade | 31 | |
498 | cascade | 32 | # build ntsc hex |
33 | export CFLAGS="-DNTSC=1 -DBUILDDATE=\\\"${DATE}\\\" " |
||
34 | make clean |
||
35 | make |
||
36 | mv C-OSD.hex C-OSD-${DATE}-ntsc.hex |
||
456 | cascade | 37 | |
498 | cascade | 38 | #build pal hex FCONLY |
39 | export CFLAGS="-DFCONLY=1 -DBUILDDATE=\\\"${DATE}\\\" " |
||
40 | make clean |
||
41 | make |
||
42 | mv C-OSD.hex C-OSD-${DATE}-pal-fconly.hex |
||
495 | cascade | 43 | |
498 | cascade | 44 | # build ntsc hex FCONLY |
45 | export CFLAGS="-DNTSC=1 -DFCONLY=1 -DBUILDDATE=\\\"${DATE}\\\" " |
||
46 | make clean |
||
47 | make |
||
48 | mv C-OSD.hex C-OSD-${DATE}-ntsc-fconly.hex |
||
495 | cascade | 49 | |
498 | cascade | 50 | |
735 | cascade | 51 | # build character files |
514 | cascade | 52 | # PAL |
53 | make clean |
||
54 | export CFLAGS="-DWRITECHARS=1 -DBUILDDATE=\\\"${DATE}\\\" " |
||
55 | make |
||
56 | mv C-OSD.hex C-OSD-characters-pal.hex |
||
501 | cascade | 57 | |
514 | cascade | 58 | # and NTSC as well |
59 | make clean |
||
60 | export CFLAGS="-DNTSC=1 -DWRITECHARS=1 -DBUILDDATE=\\\"${DATE}\\\" " |
||
61 | make |
||
62 | mv C-OSD.hex C-OSD-characters-ntsc.hex |
||
501 | cascade | 63 | |
456 | cascade | 64 | |
514 | cascade | 65 | |
457 | cascade | 66 | # clean up |
67 | make clean |
||
68 | |||
456 | cascade | 69 | md5sum *.hex |
70 | |||
71 | # pack all stuff |
||
72 | mkdir C-OSD-${DATE} |
||
73 | mv *.hex C-OSD-${DATE} |
||
74 | cp ../CHANGE.LOG C-OSD-${DATE} |
||
75 | cp ../LICENSE.TXT C-OSD-${DATE} |
||
76 | cp ../README.TXT C-OSD-${DATE} |
||
2040 | - | 77 | cp ../flash-usbasp.bat C-OSD-${DATE} |
78 | |||
456 | cascade | 79 | zip -r -9 -q C-OSD-${DATE}.zip C-OSD-${DATE} |
495 | cascade | 80 | rm -rf C-OSD-${DATE} |
456 | cascade | 81 | |
82 | du -h C-OSD-${DATE}.zip |
||
495 | cascade | 83 | echo "building based on revision $REVISION is now DONE..." |