Moved 3 rc promotion keywords from gschem into libgeda (fix for bug#1748143)
[geda-gaf/peter-b.git] / gsymcheck / src / g_rc.c
blob7c38b2d256e22b6a3cccc4b67841943033316545
1 /* gEDA - GPL Electronic Design Automation
2 * gsymcheck - gEDA Symbol Check
3 * Copyright (C) 1998-2007 Ales Hvezda
4 * Copyright (C) 1998-2007 gEDA Contributors (see ChangeLog for details)
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
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.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #include <config.h>
23 #include <stdio.h>
24 #include <ctype.h>
25 #include <sys/stat.h>
26 #ifdef HAVE_STRING_H
27 #include <string.h>
28 #endif
29 #ifdef HAVE_STDLIB_H
30 #include <stdlib.h>
31 #endif
32 #ifdef HAVE_DIRENT_H
33 #include <dirent.h>
34 #endif
35 #ifdef HAVE_UNISTD_H
36 #include <unistd.h>
37 #endif
39 #include <libgeda/libgeda.h>
41 #include "../include/struct.h"
42 #include "../include/globals.h"
43 #include "../include/i_vars.h"
44 #include "../include/prototype.h"
46 SCM g_rc_gsymcheck_version(SCM version)
48 SCM_ASSERT (scm_is_string (version), version,
49 SCM_ARG1, "gsymcheck-version");
51 if (g_strcasecmp (SCM_STRING_CHARS (version), DATE_VERSION) != 0) {
52 fprintf(stderr,
53 "You are running gEDA/gaf version [%s%s.%s],\n",
54 PREPEND_VERSION_STRING, DOTTED_VERSION, DATE_VERSION);
55 fprintf(stderr,
56 "but you have a version [%s] gsymcheckrc file:\n[%s]\n",
57 SCM_STRING_CHARS (version), rc_filename);
58 fprintf(stderr,
59 "Please be sure that you have the latest rc file.\n");
60 return SCM_BOOL_F;
64 return SCM_BOOL_T;
68 /*************************** GUILE end done *********************************/