summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-05-11 22:11:28 +0200
committerHarald Welte <laforge@gnumonks.org>2011-05-11 22:14:59 +0200
commiteb113137c8cb2092e41fdda728832f0d1ddeee83 (patch)
tree68a437569e55059ee0b4da4db4f7aa95e7455a43
parent88b6a1fa80790dfa253ceea5d22859b3422219a0 (diff)
examples: automatically copy all examples in dist and install it to docdir
-rw-r--r--openbsc/Makefile.am2
-rw-r--r--openbsc/configure.in2
-rw-r--r--openbsc/doc/Makefile.am1
-rw-r--r--openbsc/doc/examples/Makefile.am16
-rw-r--r--openbsc/doc/examples/osmo-bsc_mgcp/mgcp.cfg (renamed from openbsc/doc/examples/mgcp.cfg)0
-rw-r--r--openbsc/doc/examples/osmo-nitb/bs11/openbsc-1bts-2trx-hopping.cfg (renamed from openbsc/doc/examples/openbsc.cfg.1-2-hopping)0
-rw-r--r--openbsc/doc/examples/osmo-nitb/bs11/openbsc-1bts-2trx.cfg (renamed from openbsc/doc/examples/openbsc.cfg.1-2)0
-rw-r--r--openbsc/doc/examples/osmo-nitb/bs11/openbsc-2bts-2trx.cfg (renamed from openbsc/doc/examples/openbsc.cfg.2-2)0
-rw-r--r--openbsc/doc/examples/osmo-nitb/bs11/openbsc.cfg (renamed from openbsc/doc/examples/openbsc.cfg.1-1)0
-rw-r--r--openbsc/doc/examples/osmo-nitb/nanobts/openbsc-multitrx.cfg (renamed from openbsc/doc/examples/openbsc.cfg.nanobts.multitrx)0
-rw-r--r--openbsc/doc/examples/osmo-nitb/nanobts/openbsc.cfg (renamed from openbsc/doc/examples/openbsc.cfg.nanobts)0
-rw-r--r--openbsc/doc/examples/osmo-nitb/rbs2308/openbsc.cfg (renamed from openbsc/doc/examples/openbsc.cfg.rbs2308-4trx)0
12 files changed, 20 insertions, 1 deletions
diff --git a/openbsc/Makefile.am b/openbsc/Makefile.am
index b2522caa6..b966e69e3 100644
--- a/openbsc/Makefile.am
+++ b/openbsc/Makefile.am
@@ -1,7 +1,7 @@
AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
INCLUDES = $(all_includes) -I$(top_srcdir)/include
-SUBDIRS = include src tests
+SUBDIRS = doc include src tests
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = openbsc.pc
diff --git a/openbsc/configure.in b/openbsc/configure.in
index a2d987f7b..e9bc079b4 100644
--- a/openbsc/configure.in
+++ b/openbsc/configure.in
@@ -110,4 +110,6 @@ AC_OUTPUT(
tests/channel/Makefile
tests/bsc-nat/Makefile
tests/mgcp/Makefile
+ doc/Makefile
+ doc/examples/Makefile
Makefile)
diff --git a/openbsc/doc/Makefile.am b/openbsc/doc/Makefile.am
new file mode 100644
index 000000000..aee2d7baa
--- /dev/null
+++ b/openbsc/doc/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = examples
diff --git a/openbsc/doc/examples/Makefile.am b/openbsc/doc/examples/Makefile.am
new file mode 100644
index 000000000..b7eda49d6
--- /dev/null
+++ b/openbsc/doc/examples/Makefile.am
@@ -0,0 +1,16 @@
+
+CFG_FILES = find $(srcdir) -name '*.cfg*' | sed -e 's,^$(srcdir),,'
+
+dist-hook:
+ for f in $$($(CFG_FILES)); do \
+ j="$(distdir)/$$f" && \
+ mkdir -p "$$(dirname $$j)" && \
+ $(INSTALL_DATA) $(srcdir)/$$f $$j; \
+ done
+
+install-data-hook:
+ for f in $$($(CFG_FILES)); do \
+ j="$(DESTDIR)$(docdir)/examples/$$f" && \
+ mkdir -p "$$(dirname $$j)" && \
+ $(INSTALL_DATA) $(srcdir)/$$f $$j; \
+ done
diff --git a/openbsc/doc/examples/mgcp.cfg b/openbsc/doc/examples/osmo-bsc_mgcp/mgcp.cfg
index 678f54637..678f54637 100644
--- a/openbsc/doc/examples/mgcp.cfg
+++ b/openbsc/doc/examples/osmo-bsc_mgcp/mgcp.cfg
diff --git a/openbsc/doc/examples/openbsc.cfg.1-2-hopping b/openbsc/doc/examples/osmo-nitb/bs11/openbsc-1bts-2trx-hopping.cfg
index 654d39716..654d39716 100644
--- a/openbsc/doc/examples/openbsc.cfg.1-2-hopping
+++ b/openbsc/doc/examples/osmo-nitb/bs11/openbsc-1bts-2trx-hopping.cfg
diff --git a/openbsc/doc/examples/openbsc.cfg.1-2 b/openbsc/doc/examples/osmo-nitb/bs11/openbsc-1bts-2trx.cfg
index ebe6cc6cb..ebe6cc6cb 100644
--- a/openbsc/doc/examples/openbsc.cfg.1-2
+++ b/openbsc/doc/examples/osmo-nitb/bs11/openbsc-1bts-2trx.cfg
diff --git a/openbsc/doc/examples/openbsc.cfg.2-2 b/openbsc/doc/examples/osmo-nitb/bs11/openbsc-2bts-2trx.cfg
index 9ae800342..9ae800342 100644
--- a/openbsc/doc/examples/openbsc.cfg.2-2
+++ b/openbsc/doc/examples/osmo-nitb/bs11/openbsc-2bts-2trx.cfg
diff --git a/openbsc/doc/examples/openbsc.cfg.1-1 b/openbsc/doc/examples/osmo-nitb/bs11/openbsc.cfg
index 542edd6ad..542edd6ad 100644
--- a/openbsc/doc/examples/openbsc.cfg.1-1
+++ b/openbsc/doc/examples/osmo-nitb/bs11/openbsc.cfg
diff --git a/openbsc/doc/examples/openbsc.cfg.nanobts.multitrx b/openbsc/doc/examples/osmo-nitb/nanobts/openbsc-multitrx.cfg
index 9c9108c7c..9c9108c7c 100644
--- a/openbsc/doc/examples/openbsc.cfg.nanobts.multitrx
+++ b/openbsc/doc/examples/osmo-nitb/nanobts/openbsc-multitrx.cfg
diff --git a/openbsc/doc/examples/openbsc.cfg.nanobts b/openbsc/doc/examples/osmo-nitb/nanobts/openbsc.cfg
index 3e7b9321f..3e7b9321f 100644
--- a/openbsc/doc/examples/openbsc.cfg.nanobts
+++ b/openbsc/doc/examples/osmo-nitb/nanobts/openbsc.cfg
diff --git a/openbsc/doc/examples/openbsc.cfg.rbs2308-4trx b/openbsc/doc/examples/osmo-nitb/rbs2308/openbsc.cfg
index 7135042ff..7135042ff 100644
--- a/openbsc/doc/examples/openbsc.cfg.rbs2308-4trx
+++ b/openbsc/doc/examples/osmo-nitb/rbs2308/openbsc.cfg