3 # JSONListGenerator.awk
5 # Copyright 2009 Karsten Sperling
7 # This file is part of the FreeEMS project.
9 # FreeEMS software is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # FreeEMS software is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with any FreeEMS software. If not, see http://www.gnu.org/licenses/
22 # We ask that if you make any changes to this file you email them upstream to
23 # us at admin(at)diyefi(dot)org or, even better, fork it on www.github.com!!!
25 # Thank you for choosing FreeEMS to run your engine!
30 print " \"FreeEMSLocationIDs\": {"
32 /^
[[:space
:]]*\
/\
*.
*\
*\
/[[:space
:]]*$
/ {
35 /^
[[:space
:]]*#define[[:space:]]+[a-zA-Z0-9_]+[[:space:]]+(0x)?[0-9A-F]+[[:space:]]*$/ {
36 print " \"" $
3 "\": \"" $
2 "\","