Commit 5d7fb449 authored by Roland Levillain's avatar Roland Levillain
Browse files

Fix the generation of code excerpts for the documentation.

	* doc/tools/split_sample.sh: Use $(...) instead of `...` so that
	backslashes are interpreted uniformly.
	Pass option `-h' to grep to prevent file names from being printed
	on OS X.
	Remove useless option `-R' passed to grep.
parent 17690824
2013-02-07 Roland Levillain <roland@lrde.epita.fr> 2013-02-07 Roland Levillain <roland@lrde.epita.fr>
   
Fix the generation of code excerpts for the documentation.
* doc/tools/split_sample.sh: Use $(...) instead of `...` so that
backslashes are interpreted uniformly.
Pass option `-h' to grep to prevent file names from being printed
on OS X.
Remove useless option `-R' passed to grep.
2013-02-06 Roland Levillain <roland@lrde.epita.fr>
Address warnings reported by clang++ in Milena. Address warnings reported by clang++ in Milena.
   
* mln/canvas/browsing/diagonal2d.hh (diagonal2d_t::operator()) * mln/canvas/browsing/diagonal2d.hh (diagonal2d_t::operator())
# /bin/sh # /bin/sh
# Copyright (C) 2008, 2009, 2010 EPITA Research and Development # Copyright (C) 2008, 2009, 2010, 2013 EPITA Research and Development
# Laboratory (LRDE). # Laboratory (LRDE).
# #
# This file is part of Olena. # This file is part of Olena.
...@@ -22,8 +22,8 @@ if ! [ $# -eq 4 ]; then ...@@ -22,8 +22,8 @@ if ! [ $# -eq 4 ]; then
exit 1; exit 1;
fi fi
begins=`grep -n -R '//[[:space:]]*\\\{' $1 | cut -d ':' -f 1` begins=$(grep -n -h '//[[:space:]]*\\{' $1 | cut -d ':' -f 1)
ends=`grep -n -R '//[[:space:]]*\\\}' $1 | cut -d ':' -f 1` ends=$(grep -n -h '//[[:space:]]*\\}' $1 | cut -d ':' -f 1)
if ! [ -z "$3" ]; then if ! [ -z "$3" ]; then
suffix=".$3" suffix=".$3"
......
Supports Markdown
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