3 # configure_vc.awk - Genarate sdcc_vc.h using sdcc_vc_in.h as template
4 # and insert the version number definitions from .version
6 # Written By - Borut Razem borut.razem@siol.net
8 # This file is part of sdcc.
10 # This program is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU General Public License as published by the
12 # Free Software Foundation; either version 2, or (at your option) any
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 print " * Generated automatically by configure_vc.awk, DO NOT edit!"
33 print " * To make changes to sdcc_vc.h edit sdcc_vc_in.h instead."
38 /^#undef SDCC_VERSION_HI$/ {
39 print("#define SDCC_VERSION_HI " h);
43 /^#undef SDCC_VERSION_LO$/ {
44 print("#define SDCC_VERSION_LO " l);
48 /^#undef SDCC_VERSION_P$/ {
49 print("#define SDCC_VERSION_P " p);
53 /^#undef SDCC_VERSION_STR$/ {
54 print("#define SDCC_VERSION_STR " "\"" h "." l "." p "\"");