E. Scott Daniels | 4e4fb50 | 2020-03-24 12:28:06 -0400 | [diff] [blame] | 1 | #!/usr/bin/env ksh |
| 2 | |
| 3 | # Mnemonic: rmr_build.sh |
| 4 | # Abstract: This will pull RMR from the repo, build and install. This |
| 5 | # is en lieu of using wget to fetch the RMR package from some |
| 6 | # repo and installing it. The package method is preferred |
| 7 | # but if that breaks this can be used in place of it. |
| 8 | |
czichy | 56044b7 | 2022-12-08 12:33:09 +0200 | [diff] [blame] | 9 | rmr_ver=${1:-4.8.5} |
E. Scott Daniels | 4e4fb50 | 2020-03-24 12:28:06 -0400 | [diff] [blame] | 10 | |
| 11 | # assume that we're in the proper directory |
| 12 | set -e |
| 13 | git clone "https://gerrit.o-ran-sc.org/r/ric-plt/lib/rmr" |
| 14 | |
| 15 | cd rmr |
| 16 | git checkout $ver |
| 17 | mkdir .build |
| 18 | cd .build |
| 19 | cmake .. -DDEV_PKG=1 -DPACK_EXTERNALS=1 |
| 20 | make install |
| 21 | cmake .. -DDEV_PKG=0 |
| 22 | make install |
| 23 | |