From f99f0930fd02a5ef164c54fe8926a7e0b11acbdb Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 24 Mar 2010 10:24:38 +0100 Subject: Move the version/copyright string to a separate file It didn't really belong into the bsc_init.c... now we could even easily autogenerate this file. --- openbsc/src/Makefile.am | 2 +- openbsc/src/bsc_init.c | 14 -------------- openbsc/src/bsc_version.c | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 15 deletions(-) create mode 100644 openbsc/src/bsc_version.c diff --git a/openbsc/src/Makefile.am b/openbsc/src/Makefile.am index a21cb8090..1d1847513 100644 --- a/openbsc/src/Makefile.am +++ b/openbsc/src/Makefile.am @@ -17,7 +17,7 @@ libbsc_a_SOURCES = abis_rsl.c abis_nm.c gsm_data.c gsm_04_08_utils.c \ input/misdn.c input/ipaccess.c \ talloc_ctx.c system_information.c rest_octets.c \ rtp_proxy.c bts_siemens_bs11.c bts_ipaccess_nanobts.c \ - bts_unknown.c + bts_unknown.c bsc_version.c libmsc_a_SOURCES = gsm_subscriber.c db.c telnet_interface.c \ mncc.c gsm_04_08.c gsm_04_11.c transaction.c \ diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c index 957ccfb9b..f3436621f 100644 --- a/openbsc/src/bsc_init.c +++ b/openbsc/src/bsc_init.c @@ -33,25 +33,11 @@ #include #include -#include "bscconfig.h" - - /* global pointer to the gsm network data structure */ extern struct gsm_network *bsc_gsmnet; static void patch_nm_tables(struct gsm_bts *bts); - -const char *openbsc_version = "OpenBSC " PACKAGE_VERSION; -const char *openbsc_copyright = - "Copyright (C) 2008-2010 Harald Welte, Holger Freyther\n" - "Contributions by Daniel Willmann, Jan Lübbe,Stefan Schmidt\n" - "Dieter Spaar, Andreas Eversberg\n\n" - "License GPLv2+: GNU GPL version 2 or later \n" - "This is free software: you are free to change and redistribute it.\n" - "There is NO WARRANTY, to the extent permitted by law.\n"; - - /* The following definitions are for OM and NM packets that we cannot yet * generate by code but we just pass on */ diff --git a/openbsc/src/bsc_version.c b/openbsc/src/bsc_version.c new file mode 100644 index 000000000..02661940e --- /dev/null +++ b/openbsc/src/bsc_version.c @@ -0,0 +1,32 @@ +/* Hold the copyright and version string */ +/* (C) 2010 by Harald Welte + * All Rights Reserved + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + */ + +#include "bscconfig.h" + +const char *openbsc_version = "OpenBSC " PACKAGE_VERSION; +const char *openbsc_copyright = + "Copyright (C) 2008-2010 Harald Welte, Holger Freyther\n" + "Contributions by Daniel Willmann, Jan Lübbe,Stefan Schmidt\n" + "Dieter Spaar, Andreas Eversberg\n\n" + "License GPLv2+: GNU GPL version 2 or later \n" + "This is free software: you are free to change and redistribute it.\n" + "There is NO WARRANTY, to the extent permitted by law.\n"; + + -- cgit v1.2.3