From cc0e4099aefd69be7f8de7f20da1738e27a2f242 Mon Sep 17 00:00:00 2001 From: Lionel Gauthier Date: Tue, 11 Mar 2014 13:58:41 +0000 Subject: [PATCH] git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5141 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- .../install_asn1c_0.9.24.modified.bash | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 openair-cn/SCRIPTS/install_asn1c_0.9.24.modified.bash diff --git a/openair-cn/SCRIPTS/install_asn1c_0.9.24.modified.bash b/openair-cn/SCRIPTS/install_asn1c_0.9.24.modified.bash new file mode 100755 index 0000000000..a5806c408c --- /dev/null +++ b/openair-cn/SCRIPTS/install_asn1c_0.9.24.modified.bash @@ -0,0 +1,29 @@ +#!/bin/bash +# Tested on ubuntu 12.04 with updates 07 november 2013 + +########################################################### +THIS_SCRIPT_PATH=$(dirname $(readlink -f $0)) +source $THIS_SCRIPT_PATH/utils.bash +########################################################### + +if [ -f $OPENAIRCN_DIR/S1AP/MESSAGES/ASN1/asn1c-0.9.24.modified.tar.gz ] +then + echo_success "Found file $OPENAIRCN_DIR/S1AP/MESSAGES/ASN1/asn1c-0.9.24.modified.tar.gz, installing..." + cp $OPENAIRCN_DIR/S1AP/MESSAGES/ASN1/asn1c-0.9.24.modified.tar.gz /usr/local/src + cd /usr/local/src + extract /usr/local/src/asn1c-0.9.24.modified.tar.gz + if [ $? -eq 0 ]; then + cd asn1c-9.24 + autoreconf + rm configure.in + ./configure + make + make install + exit 0 + else + echo_error "Failed in extracting /usr/local/src/asn1c-0.9.24.modified.tar.gz, exiting" + fi +else + echo_error "File $OPENAIRCN_DIR/S1AP/MESSAGES/ASN1/asn1c-0.9.24.modified.tar.gz not found, please ask Eurecom developers how to get it, exiting" +fi +exit 1