1 | #!/usr/bin/env bash
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | echo 'Installing NodeM'
|
8 |
|
9 | npm install nodem
|
10 |
|
11 | sudo ln -sf $gtm_dist/libgtmshr.so /usr/local/lib/
|
12 | sudo ldconfig
|
13 | base=$1
|
14 | [ -f "$GTMCI" ] || export GTMCI="$(find $base -iname nodem.ci)"
|
15 | nodemgtmr="$(find $base -iname v4wnode.m | tail -n1 | xargs dirname)"
|
16 | echo "$gtmroutines" | fgrep "$nodemgtmr" || export gtmroutines="$nodemgtmr $gtmroutines"
|
17 |
|
18 | echo 'base='$1 >> ~/.profile
|
19 | echo '[ -f "$GTMCI" ] || export GTMCI="$(find $base -iname nodem.ci)"' >> ~/.profile
|
20 | echo 'nodemgtmr="$(find $base -iname v4wnode.m | tail -n1 | xargs dirname)"' >> ~/.profile
|
21 | echo 'echo "$gtmroutines" | fgrep "$nodemgtmr" || export gtmroutines="$nodemgtmr $gtmroutines"' >> ~/.profile
|
22 |
|
23 | echo 'NodeM Installed'
|