aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-03-24 10:24:38 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-03-24 10:24:38 +0100
commitf99f0930fd02a5ef164c54fe8926a7e0b11acbdb (patch)
tree74522f7ea934366676803028058edd07029a3702 /openbsc
parent3e57388305cb35edf39d9b4984f6ac8f5e36509d (diff)
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.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/Makefile.am2
-rw-r--r--openbsc/src/bsc_init.c14
-rw-r--r--openbsc/src/bsc_version.c32
3 files changed, 33 insertions, 15 deletions
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 <openbsc/signal.h>
#include <osmocore/talloc.h>
-#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 <http://gnu.org/licenses/gpl.html>\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 <laforge@gnumonks.org>
+ * 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 <http://gnu.org/licenses/gpl.html>\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";
+
+