-
Notifications
You must be signed in to change notification settings - Fork 8
/
set_path
executable file
·45 lines (31 loc) · 1.17 KB
/
set_path
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
#edits various shell scripts to provide full path to executables
NEW_PREFIX=`pwd`
cp scripts/extract.sh scripts/replot.sh tests/
TMP=$$.tmp
sed -e /PREFIX=/s:PREFIX=.*$:PREFIX=$NEW_PREFIX: scripts/run.sh >$TMP
cp $TMP tests/run.sh
cp $TMP scripts/run.sh
sed -e /PREFIX=/s:PREFIX=.*$:PREFIX=$NEW_PREFIX: scripts/run_nr.sh >$TMP
cp $TMP tests/run_nr.sh
cp $TMP scripts/run_nr.sh
sed -e /PREFIX=/s:PREFIX=.*$:PREFIX=$NEW_PREFIX: scripts/run_r.sh >$TMP
cp $TMP tests/run_r.sh
cp $TMP scripts/run_r.sh
sed -e /PREFIX=/s:PREFIX=.*$:PREFIX=$NEW_PREFIX: scripts/run_nr.sh >$TMP
cp $TMP tests/multirun_nr.sh
cp $TMP scripts/run_nr.sh
sed -e /PREFIX=/s:PREFIX=.*$:PREFIX=$NEW_PREFIX: scripts/run_r.sh >$TMP
cp $TMP tests/multirun_r.sh
cp $TMP scripts/run_r.sh
sed -e /PREFIX=/s:PREFIX=.*$:PREFIX=$NEW_PREFIX: scripts/compare.sh >$TMP
cp $TMP tests/compare.sh
cp $TMP scripts/compare.sh
sed -e /PREFIX=/s:PREFIX=.*$:PREFIX=$NEW_PREFIX: scripts/compare_r.sh >$TMP
cp $TMP tests/compare_r.sh
cp $TMP scripts/compare_r.sh
sed -e /PREFIX=/s:PREFIX=.*$:PREFIX=$NEW_PREFIX: scripts/compare_psml.sh >$TMP
cp $TMP tests/compare_psml.sh
cp $TMP scripts/compare_psml.sh
chmod u+x tests/*sh
rm $TMP