#214: Use Automake 1.11's AM_DEFAULT_SOURCE_EXT
-------------------------+--------------------------------------------------
Reporter: levill_r | Owner: Olena Team
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: Milena | Version: 1.0
Keywords: Make |
-------------------------+--------------------------------------------------
Quoting the [http://www.mail-archive.com/automake@gnu.org/msg15022.html
announce of Automake 1.11]:
{{{
- The default source file extension (.c) can be overridden with
AM_DEFAULT_SOURCE_EXT now.
}}}
Which allows us to replace
{{{
bin_PROGRAMS = foo bar baz
foo_SOURCES = foo.cc
bar_SOURCES = bar.cc
baz_SOURCES = baz.cc
}}}
with
{{{
bin_PROGRAMS = foo bar baz
AM_DEFAULT_SOURCE_EXT = .cc
}}}
(Of course, « `AM_DEFAULT_SOURCE_EXT = .cc` » should be factored in some
`common.mk` file.)
This just rocks if you consider the tons of `*_SOURCES` lines in the
zillions of `tests/*/Makefile.am` files.
On the downward side, this change requires Automake 1.11, which is not
even in Debian unstable as of July 24, 2009. We might want to wait a
little bit before requiring this version.
--
Ticket URL: <https://trac.lrde.org/olena/ticket/214>
Olena <http://olena.lrde.epita.fr>
Olena, a generic and efficient C++ image processing library.
#207: Use Automake 1.11
-------------------------+--------------------------------------------------
Reporter: levill_r | Owner: levill_r
Type: enhancement | Status: new
Priority: major | Milestone: Olena 1.1
Component: Olena | Version: 1.0
Keywords: |
-------------------------+--------------------------------------------------
Automake 1.11 provides a better framework for tests: each test can
generate a log file, and the test suite is a mere rule generating a
summary log, depending on all these logs. The `check` rule is no longer
based on a shell `for` loop, and `make` can truly honors its `-j`
(parallel instances) option when testing. Of course, one need to be
careful with side effects, notably files created by tests, as one test may
overwrite the output(s) of another tests. Akim recommends that test `foo`
writes its outputs to `foo.dir`.
Moreover, this permits many improvements:
* One can generate pretty-printed versions of the tests using, e.g.,
`rst2html` (if the log contains an RST output) on the logs.
* One can have a `recheck` rule reruning only the failed tests, since the
first line of the log records the outcome of the test (pass or fail).
* Also, provided dependencies are well set, this can probably help one
write rules to rerun only the needed tests when a change occurred in the
source tree (but I don't know yet how to do this).
--
Ticket URL: <https://trac.lrde.org/olena/ticket/207>
Olena <http://olena.lrde.epita.fr>
Olena, a generic and efficient C++ image processing library.
#129: Reintegrate oln.m4 (full or a part of it) into Olena 1.0
-----------------------------------+----------------------------------------
Reporter: levill_r | Owner: levill_r
Type: enhancement | Status: new
Priority: minor | Milestone: Olena 1.0ß
Component: Olena | Version: 1.0
Keywords: configure autoconf M4 |
-----------------------------------+----------------------------------------
In Olena 0.11, `oln.m4` (which might be renamed to `olena.m4`) provided
useful services to both the Olena package (search for libraries, set up
flags for tests, etc.) and autoconfiscated packages using Olena, by
providing a `--with-oln` (to be renamed to `--with-olena`) flag.
We should reintegrate a part of these features, possibly in two M4 macro
packages:
* one for Olena,
* one for Olena-based projects.
--
Ticket URL: <https://trac.lrde.org/olena/ticket/129>
Olena <http://olena.lrde.epita.fr>
Olena, a generic and efficient C++ image library.
#212: Convert Olena's Subversion repository to Git
----------------------+-----------------------------------------------------
Reporter: levill_r | Owner: levill_r
Type: task | Status: new
Priority: blocker | Milestone: Olena 1.1
Component: Milena | Version: 1.0
Keywords: |
----------------------+-----------------------------------------------------
I (Roland) will take care of it ASAP (following the release of Olena 1.0).
A few remarks:
* Use a script to do this, of course (reuse the one I wrote to convert
`share/`).
* Don't forget to use a real list of authors (as in the conversion of
other LRDE repositories). Compile a list of all contributors to ensure we
forgot nobody.
* Keep Subversion revision numbers in Git: they will be useful to match
information from Trac and the mailing lists.
* Actually merge branches in the Git repository, by rewriting the
history. The best is probably to create a map of Subversion merges, then
extend the script to handle this.
* Don't forget branches in source:prototypes (grrr...).
* See also #201 and #203.
* Later: Teach Git to Git beginners.
* Even later: reintegrate the PRCS repository (see #3).
--
Ticket URL: <https://trac.lrde.org/olena/ticket/212>
Olena <http://olena.lrde.epita.fr>
Olena, a generic and efficient C++ image processing library.
My very first patch into the brand new Olena Git repository. Yippee!!
* m4/oln-with-lib.m4, m4/with-swilena.m4: Here.
Signed-off-by: Roland Levillain <roland(a)lrde.epita.fr>
---
ChangeLog | 6 ++++++
m4/oln-with-lib.m4 | 17 +++++++++++++++++
m4/with-swilena.m4 | 17 +++++++++++++++++
3 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9b360b9..76c3a44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-10-27 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Add missing copyright headers to M4 files.
+
+ * m4/oln-with-lib.m4, m4/with-swilena.m4: Here.
+
2009-10-02 Roland Levillain <roland(a)lrde.epita.fr>
Configure Makefiles under milena/apps/papers/.
diff --git a/m4/oln-with-lib.m4 b/m4/oln-with-lib.m4
index 4678d8b..4f939cb 100644
--- a/m4/oln-with-lib.m4
+++ b/m4/oln-with-lib.m4
@@ -1,5 +1,22 @@
# -*- Autoconf -*-
+# Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+#
+# This file is part of Olena.
+#
+# Olena 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, version 2 of the License.
+#
+# Olena 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 Olena. If not, see <http://www.gnu.org/licenses/>.
+
+
# OLN_WITH_LIB(PACKAGE, HEADER, LIBRARY, [SHELL_NAME], [CPP_NAME],
# [OTHER-LIBRARIES])
# ----------------------------------------------------------------
diff --git a/m4/with-swilena.m4 b/m4/with-swilena.m4
index 0537699..08cfdf4 100644
--- a/m4/with-swilena.m4
+++ b/m4/with-swilena.m4
@@ -1,5 +1,22 @@
# -*- Autoconf -*-
+# Copyright (C) 2008, 2009 EPITA Research and Development Laboratory (LRDE)
+#
+# This file is part of Olena.
+#
+# Olena 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, version 2 of the License.
+#
+# Olena 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 Olena. If not, see <http://www.gnu.org/licenses/>.
+
+
# FIXME: Revamp and make it generic, so that it can shared among
# Olena, TC and clspr.
--
1.6.5.2