* doc/tools/split_sample.sh: Here.
---
milena/ChangeLog | 6 ++++++
milena/doc/tools/split_sample.sh | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 98e8345..d0bf165 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,11 @@
2010-03-17 Roland Levillain <roland(a)lrde.epita.fr>
+ Have split_sample.sh announce the right number of output files.
+
+ * doc/tools/split_sample.sh: Here.
+
+2010-03-17 Roland Levillain <roland(a)lrde.epita.fr>
+
Fix programs in doc/examples/.
* doc/examples/ima-save.cc: Add a FIXME.
diff --git a/milena/doc/tools/split_sample.sh b/milena/doc/tools/split_sample.sh
index aeb5e26..04b313e 100755
--- a/milena/doc/tools/split_sample.sh
+++ b/milena/doc/tools/split_sample.sh
@@ -13,8 +13,9 @@ if ! [ -z "$3" ]; then
fi
split=false
-i=1
+i=0
for begin in $begins; do
+ i=$((i+1))
partend=$((`echo $ends | cut -d ' ' -f $i` - 1))
subdir=`basename \`dirname $1\``
out_name="`basename $1 .$2`-$i.$2$suffix"
@@ -22,7 +23,6 @@ for begin in $begins; do
out_name="${subdir}_$out_name"
fi
head -n $partend $1 | tail -n $(($partend - $begin)) > "$4/$out_name"
- i=$((i+1))
split=true
done
--
1.5.6.5