Reorganize directories and switch libaries to using asn1c
[it/test.git] / simulators / e2sim / tools / install_asn1c
similarity index 81%
rename from simulators/e2sim/build_and_run_e2agent
rename to simulators/e2sim/tools/install_asn1c
index 1af78d6..7d1391f 100755 (executable)
@@ -1,4 +1,5 @@
-#*****************************************************************************
+#!/bin/bash
+#/*****************************************************************************
 #                                                                            *
 # Copyright 2019 AT&T Intellectual Property                                  *
 # Copyright 2019 Nokia                                                       *
 # See the License for the specific language governing permissions and        *
 # limitations under the License.                                             *
 #                                                                            *
-#*****************************************************************************
+#******************************************************************************/
 
-# Run a default build and run the e2sim executable
-
-set -e
-
-clear
-
-./build_e2sim --clean
-
-./build_e2sim
-
-echo "===================== Running E2 Agent Simulator ========================"
-
-./build/e2agent
+echo "Will install asn1c"
+sudo rm -rf asn1c
+git clone https://gerrit.o-ran-sc.org/r/com/asn1c.git
+cd asn1c/
+autoreconf -iv
+./configure
+cd examples
+chmod u+x crfc2asn1.pl
+cd ..
+make
+sudo make install