Put main code in function main()
This commit is contained in:
parent
b83f592689
commit
479b41d262
|
@ -279,7 +279,9 @@ create_gnuplot_file ()
|
|||
done
|
||||
}
|
||||
|
||||
for prod in $prodList ; do
|
||||
main()
|
||||
{
|
||||
for prod in $prodList ; do
|
||||
case "$prod" in
|
||||
matrice) argTypeProd=16 ;;
|
||||
*) argTypeProd=1 ;;
|
||||
|
@ -310,21 +312,24 @@ for prod in $prodList ; do
|
|||
create_gnuplot_file "$prod" "$bench" "$metrique" "$ylabel"
|
||||
done
|
||||
done
|
||||
done
|
||||
done
|
||||
|
||||
if [ ! -d images ]
|
||||
then
|
||||
if [ ! -d images ]
|
||||
then
|
||||
mkdir images
|
||||
fi
|
||||
fi
|
||||
|
||||
for gnuplotFile in *.gnuplot
|
||||
do
|
||||
for gnuplotFile in *.gnuplot
|
||||
do
|
||||
gnuplot "$gnuplotFile"
|
||||
done
|
||||
done
|
||||
|
||||
cd images
|
||||
cd images
|
||||
|
||||
for psFile in *.ps
|
||||
do
|
||||
for psFile in *.ps
|
||||
do
|
||||
ps2pdf $psFile
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
main
|
||||
|
|
Loading…
Reference in New Issue