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