forked from oncvpsp/oncvpsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
set_path
executable file
·33 lines (23 loc) · 857 Bytes
/
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
#!/bin/sh
#edits various shell scripts to provide full path to executables
NEW_PREFIX=`pwd`
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
rm $TMP