* bootstrap: generate milena/headers.mk at bootstrap.
---
ChangeLog | 6 ++++++
bootstrap | 21 +++++++++++++++++++++
2 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 39d71a0..753ac62 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2008-12-08 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Generate list of headers to be distributed.
+
+ * bootstrap: generate milena/headers.mk at bootstrap.
+
+2008-12-08 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Remove deprecated makefile entries.
* configure.ac: update.
diff --git a/bootstrap b/bootstrap
index 575c158..fa3a8da 100755
--- a/bootstrap
+++ b/bootstrap
@@ -108,6 +108,24 @@ run ()
)
}
+# Generate milena/headers.mk
+# ------------------------------
+# List all the headers in order to make them part of distribution.
+dist_headers ()
+{
+ cd "milena"
+ echo "nobase_include_HEADERS = \\" > headers.mk
+ echo "generating headers.mk"
+ find mln -type f | sed -e 's/$/ \\/g' >> headers.mk
+
+ echo "backup last line"
+ last_line=`tail -n 1 headers.mk | sed -e 's/\\\//g'` # remove '\' in
last line
+ echo "remove last line"
+ sed '$d' < headers.mk > headers.mk.tmp # remove last line
+ mv headers.mk.tmp headers.mk
+ echo "put back last line"
+ echo $last_line >> headers.mk # put the cleaned last line back.
+}
# Failures do matter.
set -e
@@ -119,6 +137,9 @@ require automake 1.9.4
# Generate unit test files.
run milena/tests/unit_test ./build_unit_test.sh
+# Generate headers distribution config file.
+dist_headers
+
# Tell what's going on.
set -x
--
1.5.6.5
Show replies by date