Commit 8293184f authored by Roland Levillain's avatar Roland Levillain
Browse files

Have split_sample.sh announce the right number of output files.

	* doc/tools/split_sample.sh: Here.
parent 6b0e5460
2010-03-17 Roland Levillain <roland@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@lrde.epita.fr>
 
Fix programs in doc/examples/.
......@@ -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
......
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