use syntax that doesn't break gnuplot
[AGH_fortran_course_solution.git] / make_results.sh
blob01b9c6f6817d877dc95121a2846e0a250eef230f
1 #!/bin/bash
3 # Copyright 2019 Wojciech Kosior
5 # This is free and unencumbered software released into the public domain.
7 # Anyone is free to copy, modify, publish, use, compile, sell, or
8 # distribute this software, either in source code form or as a compiled
9 # binary, for any purpose, commercial or non-commercial, and by any
10 # means.
12 # In jurisdictions that recognize copyright laws, the author or authors
13 # of this software dedicate any and all copyright interest in the
14 # software to the public domain. We make this dedication for the benefit
15 # of the public at large and to the detriment of our heirs and
16 # successors. We intend this dedication to be an overt act of
17 # relinquishment in perpetuity of all present and future rights to this
18 # software under copyright law.
20 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 # IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
24 # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
25 # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26 # OTHER DEALINGS IN THE SOFTWARE.
28 # For more information, please refer to <http://unlicense.org/>
30 for KIND in 4 8 16; do
31 for IMPL in naiv bett dot mat bett2 block; do
32 ./build/mull $KIND $IMPL > res/${IMPL}_$KIND
33 done
35 sed 's/\[kind\]/'$KIND'/' < template.gnuplot > script.gnuplot
37 cd res/
38 gnuplot -c ../script.gnuplot
39 cd ../
40 done
42 rm script.gnuplot