Commit 345173a3116a6b584be460add4d331c3e4df7476

Steffen Jaeckel 2019-05-24T11:27:42

make it possible to run etc/tune_it.sh from wherever you want

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/etc/tune_it.sh b/etc/tune_it.sh
index 60a4478..b323410 100755
--- a/etc/tune_it.sh
+++ b/etc/tune_it.sh
@@ -35,11 +35,12 @@ median() {
   echo $median
 }
 
-MPWD=$(pwd)
+MPWD=$(dirname $(readlink -f "$0"))
 FILE_NAME="tuning_list"
-TOMMATH_CUTOFFS_H="../tommath_cutoffs.h"
+TOMMATH_CUTOFFS_H="$MPWD/../tommath_cutoffs.h"
 BACKUP_SUFFIX=".orig"
-RNUM=0;
+RNUM=0
+
 #############################################################################
 # It would be a good idea to isolate these processes (with e.g.: cpuset)    #
 #                                                                           #