Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1199 | - | 1 | @echo off |
2 | :: /**************************************************************************** |
||
3 | :: * Copyright (C) 2011 by Claas Anders "CaScAdE" Rathje * |
||
4 | :: * admiralcascade@gmail.com * |
||
5 | :: * Project-URL: http://www.mylifesucks.de/oss/c-epilepsy/ * |
||
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 | set DATE=20110830-1050 |
||
23 | ::set DATE=DEVEL |
||
24 | |||
25 | :: date /T |
||
26 | |||
27 | :: clean up first |
||
28 | del *.hex |
||
29 | |||
30 | FOR %%C IN (atmega644 atmega644p) DO ( |
||
31 | FOR %%H IN (EPI10AQ41 EPI10 EPI11) DO ( |
||
32 | echo Building Hex file for: %%C on %%H |
||
33 | set CFLAGS=-DBUILDDATE=\"%DATE%\" -DHWVERSION=%%H |
||
34 | set MCU=%%C |
||
35 | make clean |
||
36 | make |
||
37 | move C-Epilepsy.hex C-Epilepsy-%DATE%-%%C-%%H.hex |
||
38 | ) |
||
39 | ) |
||
40 | |||
41 | :: clean up |
||
42 | make clean |
||
43 | |||
44 | :: show stats f.e. http://etree.org/cgi-bin/counter.cgi/software/md5sum.exe |
||
45 | md5sum *.hex |
||
46 | ::dir /A *.hex |
||
47 | |||
48 | :: pack all stuff |
||
49 | mkdir C-Epilepsy-%DATE% |
||
50 | move *.hex C-Epilepsy-%DATE% |
||
51 | copy ..\CHANGE.LOG C-Epilepsy-%DATE% |
||
52 | copy ..\LICENSE.TXT C-Epilepsy-%DATE% |
||
53 | copy ..\README.TXT C-Epilepsy-%DATE% |
||
54 | :: 7zip command line version from http://www.7-zip.org |
||
55 | 7za a -tzip C-Epilepsy-%DATE%.zip C-Epilepsy-%DATE% |
||
56 | |||
57 | rmdir /S /Q C-Epilepsy-%DATE% |
||
58 | |||
59 | dir /A C-Epilepsy-%DATE%.zip |
||
60 | |||
61 | ::echo "building based on revision $REVISION is now DONE..." |
||
62 |