Commit 544288a4 authored by Lionel Gauthier's avatar Lionel Gauthier

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6603 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 1d849624
...@@ -675,66 +675,6 @@ build_hss(){ ...@@ -675,66 +675,6 @@ build_hss(){
############################################
# set the build
############################################
if [ x$BUILD_LTE == x ]; then
: ${DIALOG_OK=0}
: ${DIALOG_CANCEL=1}
: ${DIALOG_HELP=2}
: ${DIALOG_EXTRA=3}
: ${DIALOG_ITEM_HELP=4}
: ${DIALOG_ESC=255}
: ${SIG_NONE=0}
: ${SIG_HUP=1}
: ${SIG_INT=2}
: ${SIG_QUIT=3}
: ${SIG_KILL=9}
: ${SIG_TERM=15}
input=`tempfile 2>/dev/null` || input=/tmp/input$$
output=`tempfile 2>/dev/null` || output=/tmp/test$$
trap "rm -f $input $output" $SIG_NONE $SIG_HUP $SIG_INT $SIG_TRAP $SIG_TERM
cat >$input <<-EOF
ENB: evolved Node B target
EPC: Experimental Evolved Packet Core target
HSS: Experimental Home Subscriber Server target
NONE: Do not build/run anything
EOF
cat $input | sed -e 's/^/"/' -e 's/:/" "/g' -e 's/$/"/' >$output
cat $output >$input
BUILD_LTE="NONE"
dialog --clear --title "BUILD TARGET SELECTION" \
--menu "You did not choose a target \n\
to build (optionaly to run) \n\
You can use the UP/DOWN arrow keys, \n\
the first letter of the choice as a hot key,\n\
or the number keys 1-4 to choose an option.\n\
\n\n\
Choose the target:" 20 69 4 \
--file $input 2> $output
retval=$?
tempfile=$output
case $retval in
$DIALOG_OK)
BUILD_LTE=`cat $tempfile`
;;
$DIALOG_CANCEL)
;;
$DIALOG_HELP)
;;
$DIALOG_EXTRA)
;;
$DIALOG_ITEM_HELP)
;;
$DIALOG_ESC)
;;
*)
;;
esac
fi
echo_info "3. set the top-level build target" echo_info "3. set the top-level build target"
case "$BUILD_LTE" in case "$BUILD_LTE" in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment