Commit f4d23d00 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Generate list of headers to be distributed.

	* bootstrap: generate milena/headers.mk at bootstrap.

git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3008 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent fe7ca3bc
2008-12-08 Guillaume Lazzara <z@lrde.epita.fr>
Generate list of headers to be distributed.
* bootstrap: generate milena/headers.mk at bootstrap.
2008-12-08 Guillaume Lazzara <z@lrde.epita.fr>
Remove deprecated makefile entries.
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment