This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch clang-compatibility has been deleted
was 6e24fcedd67b80c1bd531626631dee19e980f767
-----------------------------------------------------------------------
6e24fcedd67b80c1bd531626631dee19e980f767 Address warnings reported by clang++ in Scribo.
-----------------------------------------------------------------------
hooks/post-receive
--
Olena, a generic and efficient image processing platform
* new-header: New.
* Makefile.am (EXTRA_DIST): Add new-header.
---
milena/ChangeLog | 7 ++
milena/Makefile.am | 3 +
milena/new-header | 155 ++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 165 insertions(+), 0 deletions(-)
create mode 100755 milena/new-header
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 22f3c22..1dfdbca 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,10 @@
+2012-09-28 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Add a script to generate a Milena header file.
+
+ * new-header: New.
+ * Makefile.am (EXTRA_DIST): Add new-header.
+
2013-02-13 Roland Levillain <roland(a)lrde.epita.fr>
Add missing TESTS variable to Makefile.am's.
diff --git a/milena/Makefile.am b/milena/Makefile.am
index 8c6b58b..612b4f1 100644
--- a/milena/Makefile.am
+++ b/milena/Makefile.am
@@ -110,3 +110,6 @@ EXTRA_DIST = \
tests/img/test_rgb8.tif \
tests/img/test_bw.tif \
tests/img/test_gl.tif
+
+# Header file generator.
+EXTRA_DIST += new-header
diff --git a/milena/new-header b/milena/new-header
new file mode 100755
index 0000000..296095c
--- /dev/null
+++ b/milena/new-header
@@ -0,0 +1,155 @@
+#! /bin/sh
+
+me=$(basename $0)
+
+stderr ()
+{
+ for i
+ do
+ echo >&2 "$me: $i"
+ done
+}
+
+fatal ()
+{
+ stderr "$@"
+ exit 1
+}
+
+usage ()
+{
+ cat <<EOF
+Usage: $me: FILENAME
+
+with
+ FILENAME path to filename, e.g. "mln/foo/bar.hh"
+EOF
+}
+
+
+process()
+{
+ year=$(date +%Y)
+ guard=$(echo "$1" | tr "[:lower:].-/" "[:upper:]_")
+ function=$(basename "$filename" .hh)
+
+ # Almost fully qualified name (`mln' is dropped if it is the
+ # outermost namespace).
+ qual_name=$(echo "$filename" \
+ | sed 's,^mln/,,' \
+ | sed 's,\.hh$,,' \
+ | sed 's,/,::,g')
+
+ dirs=$(dirname "$filename" | tr '/' ' ')
+
+ # Newline.
+ nl="
+"
+ # Indentation.
+ indent=""
+ # Namespace opening and closing statements.
+ ns_opening=""
+ ns_closing=""
+ for dir in $dirs; do
+ ns_opening="${ns_opening}${indent}$nl"
+ ns_opening="${ns_opening}${indent}namespace $dir$nl"
+ ns_opening="${ns_opening}${indent}{$nl"
+ ns_closing="${indent}} // end of namespace $dir$nl${ns_closing}"
+ ns_closing="${indent}$nl${ns_closing}"
+ indent="${indent} "
+ done
+
+#\\} // end of namespace mln
+
+ # Perl is used when the substitution pattern contains several lines;
+ # in these cases, escape `@' as it is a special meaning in Perl
+ # (array sigil).
+ sed -e "s/@YEAR@/$year/" \
+ -e "s/@GUARD@/$guard/" \
+ -e "s/@FUNCTION@/$function/" \
+ -e "s/@QUAL_NAME@/$qual_name/" \
+ | sed "/@BEGIN_INDENT@/,/@END_INDENT@/s/^\([^#]\)/$indent\\1/" \
+ | sed -e "/@BEGIN_INDENT@/d" \
+ -e "/@END_INDENT@/d" \
+ | perl -p -e "s,\\@NAMESPACE_OPENING\\@,$ns_opening,;" \
+ -e "s,\\@NAMESPACE_CLOSING\\@,$ns_closing,"
+}
+
+
+if test $# -ne 1; then
+ usage
+ exit 1
+fi
+
+filename=$1
+prefix=$(dirname "$filename")
+
+mkdir -p "$prefix" || fatal "cannot create directory \`$prefix'"
+
+process "$filename" >"$filename" <<EOF
+// Copyright (C) @YEAR@ 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/>.
+//
+// As a special exception, you may use this file as part of a free
+// software project without restriction. Specifically, if other files
+// instantiate templates or use macros or inline functions from this
+// file, or you compile this file and link it with other files to produce
+// an executable, this file does not by itself cause the resulting
+// executable to be covered by the GNU General Public License. This
+// exception does not however invalidate any other reasons why the
+// executable file might be covered by the GNU General Public License.
+
+#ifndef @GUARD@
+# define @GUARD@
+
+/// \file
+/// \brief FIXME: Enter short file description here.
+
+// FIXME: Adjust headers inclusions.
+# include <mln/core/concept/image.hh>
+# include <mln/core/routine/duplicate.hh>
+
+@NAMESPACE_OPENING@
+@BEGIN_INDENT@
+/// FIXME: Document this function.
+template <typename I>
+mln_concrete(I)
+@FUNCTION@(const Image<I>& input);
+
+
+# ifndef MLN_INCLUDE_ONLY
+
+template <typename I>
+inline
+mln_concrete(I)
+@FUNCTION@(const Image<I>& input)
+{
+ trace::entering("@QUAL_NAME@");
+
+ // FIXME: Replace this dummy statement with actual code.
+ mln_concrete(I) output = duplicate(input);
+ // ...
+
+ trace::exiting("@QUAL_NAME@");
+ return output;
+}
+
+# endif // ! MLN_INCLUDE_ONLY
+
+@END_INDENT@
+@NAMESPACE_CLOSING@
+#endif // ! @GUARD@
+EOF
--
1.7.2.5
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch automake-1.11 has been deleted
was 155ebbe20c5028ce77059696dbc1c31279fd4916
-----------------------------------------------------------------------
155ebbe20c5028ce77059696dbc1c31279fd4916 Simplify more Scribo Makefiles thanks to AM_DEFAULT_SOURCE_EXT.
-----------------------------------------------------------------------
hooks/post-receive
--
Olena, a generic and efficient image processing platform
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch file-gen has been deleted
was 50e66038cb273e1a9a44847821729781030cde92
-----------------------------------------------------------------------
50e66038cb273e1a9a44847821729781030cde92 Add a script to generate a Milena header file.
-----------------------------------------------------------------------
hooks/post-receive
--
Olena, a generic and efficient image processing platform
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch next has been updated
via 50e66038cb273e1a9a44847821729781030cde92 (commit)
from 063c717a3628a5ddba0eced68ba8154403cf3156 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
No new revisions were added by this update.
-----------------------------------------------------------------------
Summary of changes:
milena/ChangeLog | 7 ++
milena/Makefile.am | 3 +
milena/new-header | 155 ++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 165 insertions(+), 0 deletions(-)
create mode 100755 milena/new-header
hooks/post-receive
--
Olena, a generic and efficient image processing platform
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch next has been updated
via 063c717a3628a5ddba0eced68ba8154403cf3156 (commit)
via 2088b4c018a40c82f47a55de17d646d29519b488 (commit)
from 0abc322fa3646540c4c31787a1b86893270b48e8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
063c717 Clean up ChangeLogs.
2088b4c Add missing TESTS variable to Makefile.am's.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 9 ++--
milena/ChangeLog | 48 ++++++++++------
milena/tests/canvas/Makefile.am | 4 +-
milena/tests/canvas/morpho/Makefile.am | 7 ++-
milena/tests/fun/Makefile.am | 4 +-
milena/tests/fun/p2b/Makefile.am | 7 ++-
milena/tests/fun/p2v/Makefile.am | 7 ++-
milena/tests/io/pfm/Makefile.am | 7 ++-
milena/tests/io/pnm/Makefile.am | 7 ++-
milena/tests/math/Makefile.am | 7 ++-
milena/tests/metal/make/Makefile.am | 7 ++-
milena/tests/tag/Makefile.am | 7 ++-
milena/tests/trace/Makefile.am | 7 ++-
milena/tests/value/concept/Makefile.am | 7 ++-
scribo/ChangeLog | 94 +++++++++++++++-----------------
15 files changed, 143 insertions(+), 86 deletions(-)
hooks/post-receive
--
Olena, a generic and efficient image processing platform