1 /* gEDA - GPL Electronic Design Automation
2 * gattrib -- gEDA component and net attribute manipulation using spreadsheet.
3 * Copyright (C) 2003-2007 Stuart D. Brorson.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
38 /*------------------------------------------------------------------
39 * Gattrib specific includes
40 *------------------------------------------------------------------*/
41 #include <libgeda/libgeda.h> /* geda library fcns */
42 #include "../include/struct.h" /* typdef and struct declarations */
43 #include "../include/prototype.h" /* function prototypes */
44 #include "../include/globals.h"
45 #include "../include/i_vars.h" /* This holds all the guile variable defs */
48 #ifdef HAVE_LIBDMALLOC
52 /*------------------------------------------------------------------
54 *------------------------------------------------------------------*/
55 SCM
g_rc_gattrib_version(SCM version
)
57 SCM_ASSERT (scm_is_string (version
), version
,
58 SCM_ARG1
, "gattrib-version");
60 if (g_strcasecmp (SCM_STRING_CHARS (version
), DATE_VERSION
) != 0) {
62 "You are running gEDA/gaf version [%s%s.%s],\n",
63 PREPEND_VERSION_STRING
, DOTTED_VERSION
, DATE_VERSION
);
65 "but you have a version [%s] gattribrc file.\n",
66 SCM_STRING_CHARS (version
));
68 "Please be sure that you have the latest rc file.\n");